Skip to main content

RowEventArgs<TRow> Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

Provides strongly typed event data for row-related events in a TreeDataGrid.

public class RowEventArgs<TRow>

Inheritance: EventArgs -> RowEventArgs -> RowEventArgs<TRow>

Remarks

The Avalonia.Controls.Models.TreeDataGrid.RowEventArgs<T> class extends Avalonia.Controls.Models.TreeDataGrid.RowEventArgs to provide type-specific access to the row involved in an event. This allows event handlers to work with the concrete row type without casting.

Constructors

NameDescription
RowEventArgs<TRow>Initializes a new instance of the Avalonia.Controls.Models.TreeDataGrid.RowEventArgs<T> class with the specified row.

RowEventArgs<TRow> Constructor

Initializes a new instance of the Avalonia.Controls.Models.TreeDataGrid.RowEventArgs<T> class with the specified row.

public RowEventArgs<TRow>(TRow row)

Parameters

row TRow

The row instance to associate with the event arguments.

Methods

NameDescription
CreateInherited from RowEventArgs.

Properties

NameDescription
RowGets the row associated with this event.

Row Property

Gets the row associated with this event.

public TRow Row { get; set; }

Value

A TRow instance representing the row involved in the event.

Remarks

This property hides the base Avalonia.Controls.Models.TreeDataGrid.RowEventArgs.Row property to provide strongly-typed access to the row.