Dela via


TreeViewDragItemsStartingEventArgs Class

Definition

Provides event data for the TreeView.DragItemsStarting event.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public ref class TreeViewDragItemsStartingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TreeViewDragItemsStartingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TreeViewDragItemsStartingEventArgs
Public NotInheritable Class TreeViewDragItemsStartingEventArgs
Inheritance
Object Platform::Object IInspectable TreeViewDragItemsStartingEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

Cancel

Gets or sets a value that indicates whether the item drag action should be canceled.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs.Cancel (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Data

Gets the data payload associated with an items drag action.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs.Data (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Items

Gets the loosely typed collection of objects that are selected for the item drag action.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs.Items (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to

See also