Udostępnij za pośrednictwem


TreeView.CanDragItems Property

Definition

Gets or sets a value that indicates whether items in the view can be dragged as data payload.

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

public:
 property bool CanDragItems { bool get(); void set(bool value); };
bool CanDragItems();

void CanDragItems(bool value);
public bool CanDragItems { get; set; }
var boolean = treeView.canDragItems;
treeView.canDragItems = boolean;
Public Property CanDragItems As Boolean
<TreeView CanDragItems="bool"/>

Property Value

Boolean

bool

true if items in the view can be dragged as data payload; otherwise, false. The default is true.

Windows requirements

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

Applies to