Class AttachedProperties
Defines attached properties.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class AttachedProperties : DependencyObject
Fields
View SourceAllowCustomSortProperty
The allow custom sort property
Declaration
public static readonly DependencyProperty AllowCustomSortProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CustomSortComparerProperty
The custom sorter property
Declaration
public static readonly DependencyProperty CustomSortComparerProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DataGridRowDoubleClickCommandParameterProperty
The data grid row double click command parameter property
Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandParameterProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
DataGridRowDoubleClickCommandProperty
The data grid row double click command property
Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
HasErrorProperty
Dependency Property for the HasError attached property.
Declaration
public static readonly DependencyProperty HasErrorProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IconStyleProperty
The icon style property
Declaration
public static readonly DependencyProperty IconStyleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsFullRowSelectionEnabledProperty
The select on row click property
Declaration
public static readonly DependencyProperty IsFullRowSelectionEnabledProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsTextTrimmedProperty
Identifier associated with the read-only attached property IsTextTrimmed.
Declaration
public static readonly DependencyProperty IsTextTrimmedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
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 |
|---|---|
| DependencyProperty |
SelectTextOnFocusProperty
DependencyProperty for the SelectTextOnFocus property.
Declaration
public static readonly DependencyProperty SelectTextOnFocusProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Methods
View SourceGetAllowCustomSort(DataGrid)
Gets the allow custom sort.
Declaration
public static bool GetAllowCustomSort(DataGrid dataGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGrid | dataGrid | The dataGrid. |
Returns
| Type | Description |
|---|---|
| bool |
GetCustomSortComparer(DataGridColumn)
Gets the custom sorter.
Declaration
public static IListSortComparer GetCustomSortComparer(DataGridColumn gridColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | gridColumn | The dataGrid column. |
Returns
| Type | Description |
|---|---|
| IListSortComparer |
GetDataGridRowDoubleClickCommand(DependencyObject)
Gets the ICommand that is executed on MouseDoubleClick of a DataGridRow.
Declaration
[AttachedPropertyBrowsableForChildren(IncludeDescendants = false)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static ICommand GetDataGridRowDoubleClickCommand(DependencyObject dependencyObject)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The DataGrid. |
Returns
| Type | Description |
|---|---|
| ICommand | The ICommand. |
GetDataGridRowDoubleClickCommandParameter(DependencyObject)
Gets the command parameter of the ICommand that is executed on MouseDoubleClick of a DataGridRow.
Declaration
[AttachedPropertyBrowsableForChildren(IncludeDescendants = false)]
[AttachedPropertyBrowsableForType(typeof(DataGrid))]
public static object GetDataGridRowDoubleClickCommandParameter(DependencyObject dependencyObject)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The DataGrid. |
Returns
| Type | Description |
|---|---|
| object | The command parameter object. |
GetHasError(UIElement)
Gets the HasError property value for the given element.
Declaration
public static bool GetHasError(UIElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| UIElement | element |
Returns
| Type | Description |
|---|---|
| bool |
GetIconStyle(DependencyObject)
Gets the value of this property for the attached DependencyObject. Is part of the contract for attached properties.
Declaration
public static Style GetIconStyle(DependencyObject dependencyObject)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The dependency object. |
Returns
| Type | Description |
|---|---|
| Style | The value, this attached property contains |
GetIsFullRowSelectionEnabled(DependencyObject)
Gets the select on row click.
Declaration
[AttachedPropertyBrowsableForType(typeof(DataGridRow))]
public static bool GetIsFullRowSelectionEnabled(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
Returns
| Type | Description |
|---|---|
| bool |
GetIsTextTrimmed(TextBlock)
gets the IsTextTrimmed attached property
Declaration
[AttachedPropertyBrowsableForType(typeof(TextBlock))]
public static bool GetIsTextTrimmed(TextBlock target)
Parameters
| Type | Name | Description |
|---|---|---|
| TextBlock | target |
Returns
| Type | Description |
|---|---|
| bool |
GetReplacedItem(UIElement)
gets the replace item if the SelectionOverlay is opened in ReplaceMode
Declaration
public static object GetReplacedItem(UIElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| UIElement | element |
Returns
| Type | Description |
|---|---|
| object |
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 |
|---|---|---|
| DependencyObject | dependencyObject |
Returns
| Type | Description |
|---|---|
| bool |
SetAllowCustomSort(DataGrid, bool)
Sets the allow custom sort.
Declaration
public static void SetAllowCustomSort(DataGrid dataGrid, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGrid | dataGrid | The dataGrid. |
| bool | value | if set to |
SetCustomSortComparer(DataGridColumn, IListSortComparer)
Sets the custom sorter.
Declaration
public static void SetCustomSortComparer(DataGridColumn gridColumn, IListSortComparer value)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | gridColumn | The dataGrid column. |
| IListSortComparer | value | The value. |
SetDataGridRowDoubleClickCommand(DependencyObject, ICommand)
Sets the ICommand that is executed on MouseDoubleClick of a DataGridRow.
Declaration
public static void SetDataGridRowDoubleClickCommand(DependencyObject dependencyObject, ICommand value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The DataGrid. |
| ICommand | value | The ICommand. |
SetDataGridRowDoubleClickCommandParameter(DependencyObject, object)
Sets the command parameter of the ICommand that is executed on MouseDoubleClick of a DataGridRow.
Declaration
public static void SetDataGridRowDoubleClickCommandParameter(DependencyObject dependencyObject, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The DataGrid. |
| object | value | The command parameter object. |
SetHasError(UIElement, bool)
Sets the HasError property value for the given element.
Declaration
public static void SetHasError(UIElement element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| UIElement | element | |
| bool | value |
SetIconStyle(DependencyObject, Style)
Sets the value of this property for the attached DependencyObject. Is part of the contract for attached properties.
Declaration
public static void SetIconStyle(DependencyObject dependencyObject, Style value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The dependency object. |
| Style | value | The value. |
SetIsFullRowSelectionEnabled(DependencyObject, bool)
Sets the select on row click.
Declaration
public static void SetIsFullRowSelectionEnabled(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
| bool | value | if set to |
SetIsTextTrimmed(TextBlock, bool)
sets the IsTextTrimmed attached property
Declaration
public static void SetIsTextTrimmed(TextBlock target, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| TextBlock | target | |
| bool | value |
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 |
|---|---|---|
| UIElement | element | |
| object | value |
SetSelectTextOnFocus(DependencyObject, bool)
Sets the given value for the given dependencyObject.
Declaration
public static void SetSelectTextOnFocus(DependencyObject dependencyObject, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | |
| bool | value |