DataGridRow Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a DataGrid row.
[Windows.UI.Xaml.StyleTypedProperty(Property="HeaderStyle", StyleTargetType=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridRowHeader))]
[Windows.UI.Xaml.TemplatePart(Name="BottomGridLine", Type=typeof(Windows.UI.Xaml.Shapes.Rectangle))]
[Windows.UI.Xaml.TemplatePart(Name="CellsPresenter", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridCellsPresenter))]
[Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridDetailsPresenter))]
[Windows.UI.Xaml.TemplatePart(Name="RowRoot", Type=typeof(Windows.UI.Xaml.Controls.Panel))]
[Windows.UI.Xaml.TemplatePart(Name="RowHeader", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridRowHeader))]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Normal")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalAlternatingRow")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="UnfocusedEditing")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalEditing")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="UnfocusedSelected")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalSelected")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOver")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverUnfocusedEditing")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverEditing")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverUnfocusedSelected")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverSelected")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="ValidationStates", Name="Invalid")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="ValidationStates", Name="Valid")]
public class DataGridRow : Windows.UI.Xaml.Controls.Control
[<Windows.UI.Xaml.StyleTypedProperty(Property="HeaderStyle", StyleTargetType=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridRowHeader))>]
[<Windows.UI.Xaml.TemplatePart(Name="BottomGridLine", Type=typeof(Windows.UI.Xaml.Shapes.Rectangle))>]
[<Windows.UI.Xaml.TemplatePart(Name="CellsPresenter", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridCellsPresenter))>]
[<Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridDetailsPresenter))>]
[<Windows.UI.Xaml.TemplatePart(Name="RowRoot", Type=typeof(Windows.UI.Xaml.Controls.Panel))>]
[<Windows.UI.Xaml.TemplatePart(Name="RowHeader", Type=typeof(Microsoft.Toolkit.Uwp.UI.Controls.Primitives.DataGridRowHeader))>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="Normal")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalAlternatingRow")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="UnfocusedEditing")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalEditing")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="UnfocusedSelected")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="NormalSelected")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOver")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverUnfocusedEditing")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverEditing")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverUnfocusedSelected")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="CommonStates", Name="PointerOverSelected")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="ValidationStates", Name="Invalid")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="ValidationStates", Name="Valid")>]
type DataGridRow = class
inherit Control
Public Class DataGridRow
Inherits Control
- Inheritance
-
Windows.UI.Xaml.Controls.ControlDataGridRow
- Attributes
-
Windows.UI.Xaml.StyleTypedPropertyAttribute Windows.UI.Xaml.TemplatePartAttribute Windows.UI.Xaml.TemplateVisualStateAttribute
Constructors
DataGridRow() |
Initializes a new instance of the DataGridRow class. |
Fields
DetailsTemplateProperty |
Identifies the DetailsTemplate dependency property. |
DetailsVisibilityProperty |
Identifies the DetailsTemplate dependency property. |
HeaderProperty |
Identifies the Header dependency property. |
HeaderStyleProperty |
Identifies the HeaderStyle dependency property. |
IsValidProperty |
Identifies the IsValid dependency property. |
Properties
DetailsTemplate |
Gets or sets the template that is used to display the details section of the row. |
DetailsVisibility |
Gets or sets a value that indicates when the details section of the row is displayed. |
Header |
Gets or sets the row header. |
HeaderStyle |
Gets or sets the style that is used when rendering the row header. |
IsValid |
Gets a value indicating whether the data in a row is valid. |
Methods
ArrangeOverride(Size) |
Arranges the content of the DataGridRow. |
GetIndex() |
Returns the index of the current row. |
GetRowContainingElement(FrameworkElement) |
Returns the row which contains the given element |
MeasureOverride(Size) |
Measures the children of a DataGridRow to prepare for arranging them during the ArrangeOverride(Size) pass. |
OnApplyTemplate() |
Builds the visual tree for the column header when a new template is applied. |
OnCreateAutomationPeer() |
Creates AutomationPeer (Windows.UI.Xaml.UIElement.OnCreateAutomationPeer) |