Class CancelButton
- Namespace
- Loehnert.Controls.Dialogs.ViewModels
- Assembly
- Loehnert.Controls.dll
Represents a button to Cancel the dialog.
public class CancelButton : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IButton, IDisposable
- Inheritance
-
PropertyChangedBaseCancelButton
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
CancelButton(DialogViewModel)
Initializes a new instance of the CancelButton class.
public CancelButton(DialogViewModel dialogViewModel)
Parameters
dialogViewModel
DialogViewModelDialog view model this button is belonging to.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
Properties
Command
Gets the command.
public ICommand Command { get; }
Property Value
Content
Gets the content.
public object Content { get; }
Property Value
IsCancel
Gets a value indicating whether this button is a cancel button, see IsCancel. Returns true.
public bool IsCancel { get; }
Property Value
IsDefault
Gets or sets a value indicating whether this button is the default button.
public bool IsDefault { get; set; }
Property Value
Key
Gets the function key of the button, Cancel.
public string Key { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()