Class
UnprotectDialogViewModel

Provides a view model for the unprotect dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class UnprotectDialogViewModel : DialogViewModelBase<UnprotectDialogContext>

Inheritance: objectDialogViewModelBase<UnprotectDialogContext>UnprotectDialogViewModel

Inherited Members DialogViewModelBase<UnprotectDialogContext>.Context

Constructors

UnprotectDialogViewModel(UnprotectDialogContext, Action)

Initializes a new instance of the UnprotectDialogViewModel class.

Declaration

cs-api-definition
public UnprotectDialogViewModel(UnprotectDialogContext context, Action closeDialogAction)

Parameters

context

UnprotectDialogContext

The context.

closeDialogAction

Action

The close dialog action.

Properties

CloseCommand

Gets or sets the close command.

Declaration

cs-api-definition
public ICommand CloseCommand { get; set; }

Property Value

ICommand

The close command.

DialogHeader

Gets the dialog header.

Declaration

cs-api-definition
public string DialogHeader { get; }

Property Value

string

The dialog header.

OkCommand

Gets or sets the ok command.

Declaration

cs-api-definition
public ICommand OkCommand { get; set; }

Property Value

ICommand

The ok command.

ProtectionPassword

Gets or sets the protection password.

Declaration

cs-api-definition
public string ProtectionPassword { get; set; }

Property Value

string

The protection password.

Methods

ApplyChanges(string)

Applies the changes.

Declaration

cs-api-definition
public bool ApplyChanges(string password)

Parameters

password

string

The password.

Returns

bool