語言

DialogFragment.Cancelable 屬性

定義

傳回的目前值 #setCancelable(boolean)。 -或- 控制顯示的對話框是否可取消。

public virtual bool Cancelable { [Android.Runtime.Register("isCancelable", "()Z", "GetIsCancelableHandler")] get; [Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")] set; }
[<get: Android.Runtime.Register("isCancelable", "()Z", "GetIsCancelableHandler")>]
[<set: Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")>]
member this.Cancelable : bool with get, set

屬性值

片段的可取消性標記,若存在對話框,也會套用到該標記。

屬性

備註

請使用此屬性,而非直接呼叫 Dialog.SetCancelable ,因為片段也必須更新自身行為。 預設值為 true。

Android 參考資料。android.app.DialogFragment.isCancelable

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於