Class DataGridRow
A DataGridRow for a DataGrid when MaxHeaderStackCount is greater than 1.
Inheritance
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_CellsPresenter", Type = typeof(DataGridCellsPresenter))]
public class DataGridRow : DataGridRow, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Remarks
Provides the correct cells panel and background styling for rows.
Fields
View SourceCurrentRowCountProperty
Identifies the DependencyProperty for CurrentRowCount
Declaration
public static readonly DependencyProperty CurrentRowCountProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
CurrentRowCountPropertyKey
Identifies the DependencyPropertyKey for CurrentRowCount.
Declaration
protected static readonly DependencyPropertyKey CurrentRowCountPropertyKey
Field Value
| Type | Description |
|---|---|
| DependencyPropertyKey |
IsMouseOverRowHeaderProperty
Identifies the DependencyProperty for GetIsMouseOverRowHeader(DependencyObject) and SetIsMouseOverRowHeader(DependencyObject, bool).
Declaration
public static readonly DependencyProperty IsMouseOverRowHeaderProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RowBackgroundBrushesProperty
Identifies the DependencyProperty for RowBackgroundBrushes.
Declaration
public static readonly DependencyProperty RowBackgroundBrushesProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RowBackgroundsProperty
Identifies the DependencyProperty for RowBackgrounds.
Declaration
public static readonly DependencyProperty RowBackgroundsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RowBackgroundsPropertyKey
Identifies the DependencyPropertyKey for RowBackgrounds.
Declaration
protected static readonly DependencyPropertyKey RowBackgroundsPropertyKey
Field Value
| Type | Description |
|---|---|
| DependencyPropertyKey |
RowHeightsProperty
Identifies the DependencyProperty for RowHeights.
Declaration
public static readonly DependencyProperty RowHeightsProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
RowHeightsPropertyKey
Identifies the DependencyPropertyKey for RowHeights.
Declaration
protected static readonly DependencyPropertyKey RowHeightsPropertyKey
Field Value
| Type | Description |
|---|---|
| DependencyPropertyKey |
Properties
View SourceCellsPanel
Gets or sets the cells panel.
Declaration
public UIElement CellsPanel { get; protected set; }
Property Value
| Type | Description |
|---|---|
| UIElement | The cells panel. |
CurrentRowCount
Gets the count of rows.
Declaration
public int CurrentRowCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
RowBackgroundBrushes
Gets or sets the background Brushes for the rows.
Declaration
public Brush[] RowBackgroundBrushes { get; set; }
Property Value
| Type | Description |
|---|---|
| Brush[] |
Remarks
The brushes will be applied to rows in the order they are given here. If there are more rows than provided brushes the brushes will cycle.
RowBackgrounds
Gets the DataGridRowBackgrounds providing background Brush and height for the background styles of the rows.
Declaration
public DataGridRowBackground[] RowBackgrounds { get; }
Property Value
| Type | Description |
|---|---|
| DataGridRowBackground[] |
RowHeights
Gets or sets the height of the sub rows.
Declaration
public double[] RowHeights { get; protected set; }
Property Value
| Type | Description |
|---|---|
| double[] |
Methods
View SourceGetIsMouseOverRowHeader(DependencyObject)
Gets a value indicating whether the mouse is over the row header.
Declaration
[AttachedPropertyBrowsableForType(typeof(DataGridRow))]
public static bool GetIsMouseOverRowHeader(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
Returns
| Type | Description |
|---|---|
| bool |
|
InvalidateCellsPanelMeasure()
Invalidates the cells panel measure.
Declaration
protected void InvalidateCellsPanelMeasure()
SetIsMouseOverRowHeader(DependencyObject, bool)
Sets a value indicating whether the mouse is over the row header.
Declaration
[AttachedPropertyBrowsableForType(typeof(DataGridRow))]
public static void SetIsMouseOverRowHeader(DependencyObject element, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | The element. |
| bool | value | The value. |