Class ClosingButtonBase
- Namespace
- Loehnert.Controls.Dialogs.ViewModels
- Assembly
- Loehnert.Controls.dll
Represents a base class for a button that closes the dialog.
public abstract class ClosingButtonBase : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IButton, IDisposable
- Inheritance
-
PropertyChangedBaseClosingButtonBase
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
ClosingButtonBase(DialogViewModel)
Initializes a new instance of the ClosingButtonBase class.
protected ClosingButtonBase(DialogViewModel dialogViewModel)
Parameters
dialogViewModel
DialogViewModelThe dialog 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 abstract object Content { get; }
Property Value
DialogViewModel
Gets the dialog view model this button is belonging to.
protected DialogViewModel DialogViewModel { get; }
Property Value
IsCancel
Gets a value indicating whether this button is a cancel button, see IsCancel. Returns false.
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, e.g. 'Yes' or 'Cancel'.
public abstract string Key { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()