Table of Contents

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

Constructors

CancelButton(DialogViewModel)

Initializes a new instance of the CancelButton class.

public CancelButton(DialogViewModel dialogViewModel)

Parameters

dialogViewModel DialogViewModel

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 object Content { get; }

Property Value

object

IsCancel

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

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, Cancel.

public string Key { get; }

Property Value

string

Methods

Dispose()

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

public void Dispose()