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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET