TreeDataGridRowDragStartedEventArgs Class
Definition
Provides data for the Avalonia.Controls.TreeDataGrid.RowDragStarted event.
public class TreeDataGridRowDragStartedEventArgs
Remarks
This event is raised when a drag operation in a Avalonia.Controls.TreeDataGrid control begins. It contains information about the models being dragged and allows for configuring the permitted drag effects.
Constructors
| Name | Description |
|---|---|
| TreeDataGridRowDragStartedEventArgs | No summary available. |
TreeDataGridRowDragStartedEventArgs Constructor
public TreeDataGridRowDragStartedEventArgs(System.Collections.Generic.IEnumerable<object> models)
Parameters
models System.Collections.Generic.IEnumerable<object>
Properties
| Name | Description |
|---|---|
| AllowedEffects | Gets or sets the allowed effects for the drag operation. |
| Models | Gets the collection of model objects that represent the rows being dragged. |
AllowedEffects Property
Gets or sets the allowed effects for the drag operation.
public Avalonia.Input.DragDropEffects AllowedEffects { get; set; }
Remarks
This property can be used to control what operations (move, copy, etc.) are permitted during the drag operation. By default, when Avalonia.Controls.TreeDataGrid.AutoDragDropRows is enabled, this is set to Avalonia.Input.DragDropEffects.Move. Setting this to Avalonia.Input.DragDropEffects.None will cancel the drag operation.
Models Property
Gets the collection of model objects that represent the rows being dragged.
public System.Collections.Generic.IEnumerable<object> Models { get; set; }
Remarks
These are the underlying data models for the selected rows, not the visual row elements.