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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.