Class DataGridColumnAttachments
Provides some attached properties for a DataGridColumn and DataGridCell.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public static class DataGridColumnAttachments
Fields
View SourceIsCellSelectedProperty
Identifies the DependencyProperty for GetIsCellSelected(DependencyObject) and SetIsCellSelected(DependencyObject, bool).
Declaration
public static readonly DependencyProperty IsCellSelectedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsHeaderSelectedProperty
Identifies the DependencyProperty for GetIsHeaderSelected(DependencyObject) and SetIsHeaderSelected(DependencyObject, bool).
Declaration
public static readonly DependencyProperty IsHeaderSelectedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsMouseOverCellProperty
Identifies the DependencyProperty for GetIsMouseOverCell(DependencyObject) and SetIsMouseOverCell(DependencyObject, bool).
Declaration
public static readonly DependencyProperty IsMouseOverCellProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsMouseOverHeaderProperty
Identifies the DependencyProperty for GetIsMouseOverHeader(DependencyObject) and SetIsMouseOverHeader(DependencyObject, bool).
Declaration
public static readonly DependencyProperty IsMouseOverHeaderProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Methods
View SourceGetIsCellSelected(DependencyObject)
Gets a value indicating whether a cell of a column is currently selected.
Declaration
public static bool GetIsCellSelected(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to get this attached property from. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetIsHeaderSelected(DependencyObject)
Gets a value indicating whether the header is currently selected.
Declaration
public static bool GetIsHeaderSelected(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
Returns
| Type | Description |
|---|---|
| bool | A value indicating whether the header is currently selected |
GetIsMouseOverCell(DependencyObject)
Gets whether the mouse is over a cell for a DependencyObject.
Declaration
public static bool GetIsMouseOverCell(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to get this attached property from. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetIsMouseOverHeader(DependencyObject)
Gets whether the mouse is over the header for a DependencyObject.
Declaration
public static bool GetIsMouseOverHeader(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to get this attached property from. |
Returns
| Type | Description |
|---|---|
| bool |
|
SetIsCellSelected(DependencyObject, bool)
Sets a value indicating whether a cell of a column is currently selected.
Declaration
public static void SetIsCellSelected(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to set this attached property for. |
| bool | value | Value indicating whether a cell of a column is currently selected. |
SetIsHeaderSelected(DependencyObject, bool)
Sets a value indicating whether the header is currently selected.
Declaration
public static void SetIsHeaderSelected(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
| bool | value | if set to |
SetIsMouseOverCell(DependencyObject, bool)
Sets whether the mouse is over a cell for a DependencyObject.
Declaration
public static void SetIsMouseOverCell(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to set this attached property for. |
| bool | value | Value indicating whether the mouse is over a cell. |
SetIsMouseOverHeader(DependencyObject, bool)
Sets whether the mouse is over the header for a DependencyObject.
Declaration
public static void SetIsMouseOverHeader(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The DependencyObject to set this attached property for. |
| bool | value | Value indicating whether the mouse is over the header. |