Class CustomButton
- Namespace
- Loehnert.Controls.Dialogs.ViewModels
- Assembly
- Loehnert.Controls.dll
Represents a custom button.
public class CustomButton : ClosingButtonBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IButton, IDisposable
- Inheritance
-
PropertyChangedBaseCustomButton
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
CustomButton(DialogViewModel, string, string)
Initializes a new instance of the CustomButton class.
public CustomButton(DialogViewModel dialogViewModel, string key, string content)
Parameters
dialogViewModelDialogViewModelThe dialog view model this button is belonging to.
keystringThe function key of the button, see Key.
contentstringContent of the button.
Properties
Content
Gets the content.
public override object Content { get; }
Property Value
Key
Gets the function key of the button, e.g. 'Yes' or 'Cancel'.
public override string Key { get; }