共用方式為


MenuItem.IsDestructive 屬性

定義

取得或設定值,此值指出功能表項目是否會移除相關聯的 UI 項目。

public:
 property bool IsDestructive { bool get(); void set(bool value); };
public bool IsDestructive { get; set; }
member this.IsDestructive : bool with get, set
Public Property IsDestructive As Boolean

屬性值

False

備註

下列範例示範如何將具有 IsDestructive 的 MenuItem 新增為 True。

<ViewCell.ContextActions>
<MenuItem Text="Delete" IsDestructive="True"/>
</ViewCell.ContextActions>

適用於