TaskDialogPage.AllowCancel Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property bool AllowCancel { bool get(); void set(bool value); };
public bool AllowCancel { get; set; }
member this.AllowCancel : bool with get, set
Public Property AllowCancel As Boolean
Property Value
true
to allow to close the dialog by pressing ESC or Alt+F4 or by clicking the title bar's close button; otherwise, false
. The default value is false
.
Exceptions
The property is set and this page instance is currently bound to a task dialog.
Remarks
You can intercept cancellation of the dialog without displaying a "Cancel" button by adding the Cancel button that has its Visible property set to false
.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per