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. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets or sets the source object that raised the routed event. Inherited from RoutedEventArgs. |
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.