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