Table of Contents

Class CustomButton

Namespace
Loehnert.Controls.Dialogs.ViewModels
Assembly
Loehnert.Controls.dll

Represents a custom button.

public class CustomButton : ClosingButtonBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IButton, IDisposable
Inheritance
PropertyChangedBase
CustomButton
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

CustomButton(DialogViewModel, string, string)

Initializes a new instance of the CustomButton class.

public CustomButton(DialogViewModel dialogViewModel, string key, string content)

Parameters

dialogViewModel DialogViewModel

The dialog view model this button is belonging to.

key string

The function key of the button, see Key.

content string

Content of the button.

Properties

Content

Gets the content.

public override object Content { get; }

Property Value

object

Key

Gets the function key of the button, e.g. 'Yes' or 'Cancel'.

public override string Key { get; }

Property Value

string