 | ProgressDialog.ShowCancelButton Property |
Gets or sets a value that indicates whether the dialog has a cancel button.
Namespace:
Ookii.Dialogs.Wpf
Assembly:
Ookii.Dialogs.Wpf (in Ookii.Dialogs.Wpf.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic bool ShowCancelButton { get; set; }
Public Property ShowCancelButton As Boolean
Get
Set
public:
property bool ShowCancelButton {
bool get ();
void set (bool value);
}
member ShowCancelButton : bool with get, set
Property Value
Type:
Booleantrue if the dialog has a cancel button; otherwise,
false. The default
value is
true.
Remarks Note |
---|
This property requires Windows Vista or later; on older versions of Windows, the cancel button will always
be displayed.
|
The event handler for the DoWork event must periodically check the value of the
CancellationPending property to see if the operation has been cancelled if this
property is true.
Setting this property to false is not recommended unless absolutely necessary.
See Also