Udostępnij za pośrednictwem


TreeView.SelectionMode Property

Definition

Gets or sets the selection behavior for a TreeView instance.

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

public:
 property TreeViewSelectionMode SelectionMode { TreeViewSelectionMode get(); void set(TreeViewSelectionMode value); };
TreeViewSelectionMode SelectionMode();

void SelectionMode(TreeViewSelectionMode value);
public TreeViewSelectionMode SelectionMode { get; set; }
var treeViewSelectionMode = treeView.selectionMode;
treeView.selectionMode = treeViewSelectionMode;
Public Property SelectionMode As TreeViewSelectionMode

Property Value

An enumeration value that specifies the selection behavior for a TreeView. The default is Single selection.

Applies to