GridViewRow class
The container a GridView realizes for one row: it hosts that row’s cells, draws the row background and grid lines, and routes row input. Its background in each state comes from its style: the row reports whether it is selected or under the pointer in its visual state.
Guide: C# Markup guide
public sealed class GridViewRow : Control, ICommandArgumentSourcePublic Members
Section titled “Public Members”| name | description |
|---|---|
| Index { get; } | Gets the index of the item this row currently holds, or -1 when it holds none. |
| IsSelected { get; } | Gets whether the item this row holds is selected; the row draws its selection from it. |
| Item { get; } | Gets the item this row currently holds, or null when it holds none. |
| TryGetCell(…) | Gets the view a column’s cell template built for this row, and the template context that names its elements. False when the row has no cell at that column index. |
| static readonly IsSelectedProperty | Whether the item this row holds is selected. |
| static readonly ItemProperty | The item this row currently holds. |
Remarks
Section titled “Remarks”Reachable from PrepareContainer, so an application can attach behavior to the whole row rather than repeating it in every cell template. It also supplies Item as the operand of commands invoked from within it.
See Also
Section titled “See Also”- class Control
- interface ICommandArgumentSource
- namespace Aprillz.MewUI.Controls