Show / Hide Table of Contents

Class AttachedProperties

Defines attached properties.

Inheritance
object
DispatcherObject
DependencyObject
AttachedProperties
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Equals(object)
DependencyObject.GetHashCode()
DependencyObject.GetLocalValueEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyPropertyKey, object)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
DependencyProperty
View Source

CustomSortComparerProperty

The custom sorter property

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

DataGridRowDoubleClickCommandParameterProperty

The data grid row double click command parameter property

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

DataGridRowDoubleClickCommandProperty

The data grid row double click command property

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

HasErrorProperty

Dependency Property for the HasError attached property.

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

IconStyleProperty

The icon style property

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

IsFullRowSelectionEnabledProperty

The select on row click property

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

IsTextTrimmedProperty

Identifier associated with the read-only attached property IsTextTrimmed.

Declaration
public static readonly DependencyProperty IsTextTrimmedProperty
Field Value
Type Description
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
DependencyProperty
View Source

SelectTextOnFocusProperty

DependencyProperty for the SelectTextOnFocus property.

Declaration
public static readonly DependencyProperty SelectTextOnFocusProperty
Field Value
Type Description
DependencyProperty

Methods

View Source

GetAllowCustomSort(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
View Source

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
View Source

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.

View Source

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.

View Source

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
View Source

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

View Source

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
View Source

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
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
UIElement element
Returns
Type Description
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
DependencyObject dependencyObject
Returns
Type Description
bool
View Source

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 true [value].

View Source

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.

View Source

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.

View Source

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.

View Source

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
View Source

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.

View Source

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 true [value].

View Source

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
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
UIElement element
object value
View Source

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

Extension Methods

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