Share via


TreeView.CanReorderItems Property

Definition

Gets or sets a value that indicates whether items in the view can be reordered through user interaction.

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

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

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

Property Value

Boolean

bool

true if items in the view can be reordered through user interaction; 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