TreeView.CanDragItems 屬性

定義

取得或設定值,這個值表示檢視中的專案是否可以拖曳為數據承載。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

void CanDragItems(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool CanDragItems();

void CanDragItems(bool value);
public bool CanDragItems { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool CanDragItems { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
Public Property CanDragItems As Boolean
<TreeView CanDragItems="bool"/>

屬性值

Boolean

bool

如果檢視中的專案可以拖曳為數據承載,則為true;否則為false。 預設值為 True

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於