MenuItem.IsDestructive 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,此值指出功能表項目是否會移除相關聯的 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>