Class
ProtectDialogViewModel

Provides a view model for the protection dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class ProtectDialogViewModel : DialogViewModelBase<ProtectDialogContext>

Inheritance: objectDialogViewModelBase<ProtectDialogContext>ProtectDialogViewModel

Inherited Members DialogViewModelBase<ProtectDialogContext>.Context

Constructors

ProtectDialogViewModel(ProtectDialogContext, Action)

Initializes a new instance of the ProtectDialogViewModel class.

Declaration

cs-api-definition
public ProtectDialogViewModel(ProtectDialogContext context, Action closeDialogAction)

Parameters

context

ProtectDialogContext

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.

HasProtectionOptions

Gets the value indicating whether there are protection options.

Declaration

cs-api-definition
public bool HasProtectionOptions { get; }

Property Value

bool

The value indicating whether there are protection options.

OkCommand

Gets or sets the ok command.

Declaration

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

Property Value

ICommand

The ok command.

ProtectionOptions

Gets the protection options.

Declaration

cs-api-definition
public IEnumerable<ProtectDialogOption> ProtectionOptions { get; }

Property Value

IEnumerable<ProtectDialogOption>

The protection options.

ProtectionPassword

Gets or sets the protection password.

Declaration

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

Property Value

string

The protection password.

ProtectionRepeatPassword

Gets or sets the protection repeat password.

Declaration

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

Property Value

string

The protection repeat password.

Methods

ApplyChanges(string)

Applies the changes.

Declaration

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

Parameters

password

string

The password.

Returns

bool

A value indicating whether the changes were applied.