Show / Hide Table of Contents

Class AttachedProperties

Defines attached properties.

Inheritance
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
AttachedProperties
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
System.Windows.DependencyObject.CoerceValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.Equals(System.Object)
System.Windows.DependencyObject.GetHashCode()
System.Windows.DependencyObject.GetLocalValueEnumerator()
System.Windows.DependencyObject.GetValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.DependencyObject.ReadLocalValue(System.Windows.DependencyProperty)
System.Windows.DependencyObject.SetCurrentValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
System.Windows.DependencyObject.SetValue(System.Windows.DependencyPropertyKey, System.Object)
System.Windows.DependencyObject.ShouldSerializeProperty(System.Windows.DependencyProperty)
System.Windows.DependencyObject.DependencyObjectType
System.Windows.DependencyObject.IsSealed
System.Windows.Threading.DispatcherObject.Dispatcher
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class AttachedProperties : DependencyObject

Fields

View Source

AllowCustomSortProperty

The allow custom sort property

Declaration
public static readonly DependencyProperty AllowCustomSortProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

CustomSortComparerProperty

The custom sorter property

Declaration
public static readonly DependencyProperty CustomSortComparerProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

DataGridRowDoubleClickCommandParameterProperty

The data grid row double click command parameter property

Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandParameterProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

DataGridRowDoubleClickCommandProperty

The data grid row double click command property

Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

HasErrorProperty

Dependency Property for the HasError attached property.

Declaration
public static readonly DependencyProperty HasErrorProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

IconStyleProperty

The icon style property

Declaration
public static readonly DependencyProperty IconStyleProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

IsFullRowSelectionEnabledProperty

The select on row click property

Declaration
public static readonly DependencyProperty IsFullRowSelectionEnabledProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

IsTextTrimmedProperty

Identifier associated with the read-only attached property IsTextTrimmed.

Declaration
public static readonly DependencyProperty IsTextTrimmedProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

ReplacedItemProperty

defines the dependency property for the item that should be replaced if the SelectionOverlay is opened in ReplaceMode

Declaration
public static readonly DependencyProperty ReplacedItemProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SelectTextOnFocusProperty

DependencyProperty for the SelectTextOnFocus property.

Declaration
public static readonly DependencyProperty SelectTextOnFocusProperty
Field Value
Type Description
System.Windows.DependencyProperty

Methods

View Source

GetAllowCustomSort(DataGrid)

Gets the allow custom sort.

Declaration
public static bool GetAllowCustomSort(DataGrid dataGrid)
Parameters
Type Name Description
System.Windows.Controls.DataGrid dataGrid

The dataGrid.

Returns
Type Description
System.Boolean
View Source

GetCustomSortComparer(DataGridColumn)

Gets the custom sorter.

Declaration
public static IListSortComparer GetCustomSortComparer(DataGridColumn gridColumn)
Parameters
Type Name Description
System.Windows.Controls.DataGridColumn gridColumn

The dataGrid column.

Returns
Type Description
IListSortComparer
View Source

GetDataGridRowDoubleClickCommand(DependencyObject)

Gets the System.Windows.Input.ICommand that is executed on System.Windows.Controls.Control.MouseDoubleClick of a DataGridRow.

Declaration
[AttachedPropertyBrowsableForChildren(IncludeDescendants = false)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static ICommand GetDataGridRowDoubleClickCommand(DependencyObject dependencyObject)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The System.Windows.Controls.DataGrid.

Returns
Type Description
System.Windows.Input.ICommand

The System.Windows.Input.ICommand.

View Source

GetDataGridRowDoubleClickCommandParameter(DependencyObject)

Gets the command parameter of the System.Windows.Input.ICommand that is executed on System.Windows.Controls.Control.MouseDoubleClick of a DataGridRow.

Declaration
[AttachedPropertyBrowsableForChildren(IncludeDescendants = false)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static object GetDataGridRowDoubleClickCommandParameter(DependencyObject dependencyObject)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The System.Windows.Controls.DataGrid.

Returns
Type Description
System.Object

The command parameter System.Object.

View Source

GetHasError(UIElement)

Gets the HasError property value for the given element.

Declaration
public static bool GetHasError(UIElement element)
Parameters
Type Name Description
System.Windows.UIElement element
Returns
Type Description
System.Boolean
View Source

GetIconStyle(DependencyObject)

Gets the value of this property for the attached System.Windows.DependencyObject. Is part of the contract for attached properties.

Declaration
public static Style GetIconStyle(DependencyObject dependencyObject)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The dependency object.

Returns
Type Description
System.Windows.Style

The value, this attached property contains

View Source

GetIsFullRowSelectionEnabled(DependencyObject)

Gets the select on row click.

Declaration
[AttachedPropertyBrowsableForType(typeof(DataGridRow))]
public static bool GetIsFullRowSelectionEnabled(DependencyObject element)
Parameters
Type Name Description
System.Windows.DependencyObject element

The element.

Returns
Type Description
System.Boolean
View Source

GetIsTextTrimmed(TextBlock)

gets the IsTextTrimmed attached property

Declaration
[AttachedPropertyBrowsableForType(typeof(TextBlock))]
public static bool GetIsTextTrimmed(TextBlock target)
Parameters
Type Name Description
System.Windows.Controls.TextBlock target
Returns
Type Description
System.Boolean
View Source

GetReplacedItem(UIElement)

gets the replace item if the SelectionOverlay is opened in ReplaceMode

Declaration
public static object GetReplacedItem(UIElement element)
Parameters
Type Name Description
System.Windows.UIElement element
Returns
Type Description
System.Object
View Source

GetSelectTextOnFocus(DependencyObject)

Gets the SelectTextOnFocus property value for the given dependencyObject.

Declaration
[AttachedPropertyBrowsableForType(typeof(TextBox))]
public static bool GetSelectTextOnFocus(DependencyObject dependencyObject)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject
Returns
Type Description
System.Boolean
View Source

SetAllowCustomSort(DataGrid, Boolean)

Sets the allow custom sort.

Declaration
public static void SetAllowCustomSort(DataGrid dataGrid, bool value)
Parameters
Type Name Description
System.Windows.Controls.DataGrid dataGrid

The dataGrid.

System.Boolean value

if set to true [value].

View Source

SetCustomSortComparer(DataGridColumn, IListSortComparer)

Sets the custom sorter.

Declaration
public static void SetCustomSortComparer(DataGridColumn gridColumn, IListSortComparer value)
Parameters
Type Name Description
System.Windows.Controls.DataGridColumn gridColumn

The dataGrid column.

IListSortComparer value

The value.

View Source

SetDataGridRowDoubleClickCommand(DependencyObject, ICommand)

Sets the System.Windows.Input.ICommand that is executed on System.Windows.Controls.Control.MouseDoubleClick of a DataGridRow.

Declaration
public static void SetDataGridRowDoubleClickCommand(DependencyObject dependencyObject, ICommand value)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The System.Windows.Controls.DataGrid.

System.Windows.Input.ICommand value

The System.Windows.Input.ICommand.

View Source

SetDataGridRowDoubleClickCommandParameter(DependencyObject, Object)

Sets the command parameter of the System.Windows.Input.ICommand that is executed on System.Windows.Controls.Control.MouseDoubleClick of a DataGridRow.

Declaration
public static void SetDataGridRowDoubleClickCommandParameter(DependencyObject dependencyObject, object value)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The System.Windows.Controls.DataGrid.

System.Object value

The command parameter System.Object.

View Source

SetHasError(UIElement, Boolean)

Sets the HasError property value for the given element.

Declaration
public static void SetHasError(UIElement element, bool value)
Parameters
Type Name Description
System.Windows.UIElement element
System.Boolean value
View Source

SetIconStyle(DependencyObject, Style)

Sets the value of this property for the attached System.Windows.DependencyObject. Is part of the contract for attached properties.

Declaration
public static void SetIconStyle(DependencyObject dependencyObject, Style value)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject

The dependency object.

System.Windows.Style value

The value.

View Source

SetIsFullRowSelectionEnabled(DependencyObject, Boolean)

Sets the select on row click.

Declaration
public static void SetIsFullRowSelectionEnabled(DependencyObject element, bool value)
Parameters
Type Name Description
System.Windows.DependencyObject element

The element.

System.Boolean value

if set to true [value].

View Source

SetIsTextTrimmed(TextBlock, Boolean)

sets the IsTextTrimmed attached property

Declaration
public static void SetIsTextTrimmed(TextBlock target, bool value)
Parameters
Type Name Description
System.Windows.Controls.TextBlock target
System.Boolean value
View Source

SetReplacedItem(UIElement, Object)

sets the replace item if the SelectionOverlay is opened in ReplaceMode

Declaration
public static void SetReplacedItem(UIElement element, object value)
Parameters
Type Name Description
System.Windows.UIElement element
System.Object value
View Source

SetSelectTextOnFocus(DependencyObject, Boolean)

Sets the given value for the given dependencyObject.

Declaration
public static void SetSelectTextOnFocus(DependencyObject dependencyObject, bool value)
Parameters
Type Name Description
System.Windows.DependencyObject dependencyObject
System.Boolean value

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildsByType<T>(DependencyObject, List<T>)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.XamlClone<T>(T)
  • View Source
Back to top Generated by DocFX