Table of Contents

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
PropertyChangedBase
ClosingButtonBase
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

ClosingButtonBase(DialogViewModel)

Initializes a new instance of the ClosingButtonBase class.

protected ClosingButtonBase(DialogViewModel dialogViewModel)

Parameters

dialogViewModel DialogViewModel

The 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

ICommand

Content

Gets the content.

public abstract object Content { get; }

Property Value

object

DialogViewModel

Gets the dialog view model this button is belonging to.

protected DialogViewModel DialogViewModel { get; }

Property Value

DialogViewModel

IsCancel

Gets a value indicating whether this button is a cancel button, see IsCancel. Returns false.

public bool IsCancel { get; }

Property Value

bool

IsDefault

Gets or sets a value indicating whether this button is the default button.

public bool IsDefault { get; set; }

Property Value

bool

Key

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

public abstract string Key { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()