Class AttachedProperties
Defines attached properties.
Inheritance
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 | 
|---|---|
| System.Windows.DependencyProperty | 
CustomSortComparerProperty
The custom sorter property
Declaration
public static readonly DependencyProperty CustomSortComparerProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
DataGridRowDoubleClickCommandParameterProperty
The data grid row double click command parameter property
Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandParameterProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
DataGridRowDoubleClickCommandProperty
The data grid row double click command property
Declaration
public static readonly DependencyProperty DataGridRowDoubleClickCommandProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
HasErrorProperty
Dependency Property for the HasError attached property.
Declaration
public static readonly DependencyProperty HasErrorProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IconStyleProperty
The icon style property
Declaration
public static readonly DependencyProperty IconStyleProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsFullRowSelectionEnabledProperty
The select on row click property
Declaration
public static readonly DependencyProperty IsFullRowSelectionEnabledProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
IsTextTrimmedProperty
Identifier associated with the read-only attached property IsTextTrimmed.
Declaration
public static readonly DependencyProperty IsTextTrimmedProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.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 | 
|---|---|
| System.Windows.DependencyProperty | 
SelectTextOnFocusProperty
DependencyProperty for the SelectTextOnFocus property.
Declaration
public static readonly DependencyProperty SelectTextOnFocusProperty
  Field Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | 
Methods
View SourceGetAllowCustomSort(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 | 
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 | 
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.  | 
      
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.  | 
      
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 | 
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  | 
      
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 | 
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 | 
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 | 
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 | 
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   | 
      
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.  | 
      
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.  | 
      
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.  | 
      
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 | 
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.  | 
      
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   | 
      
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 | 
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 | 
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 |