New to Telerik UI for WPFStart a free 30-day trial

Provides a view model for the protection dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class ProtectDialogViewModel : DialogViewModelBase<ProtectDialogContext>

Inheritance: objectDialogViewModelBase<ProtectDialogContext>ProtectDialogViewModel

Inherited Members DialogViewModelBase<ProtectDialogContext>.Context

Constructors

Initializes a new instance of the ProtectDialogViewModel class.

C#
public ProtectDialogViewModel(ProtectDialogContext context, Action closeDialogAction)
Parameters:contextProtectDialogContext

The context.

closeDialogActionAction

The close dialog action.

Properties

Gets or sets the close command.

C#
public ICommand CloseCommand { get; set; }
Property Value:

The close command.

Gets the dialog header.

C#
public string DialogHeader { get; }
Property Value:

The dialog header.

Gets the value indicating whether there are protection options.

C#
public bool HasProtectionOptions { get; }
Property Value:

The value indicating whether there are protection options.

Gets or sets the ok command.

C#
public ICommand OkCommand { get; set; }
Property Value:

The ok command.

Gets the protection options.

C#
public IEnumerable<ProtectDialogOption> ProtectionOptions { get; }
Property Value:

The protection options.

Gets or sets the protection password.

C#
public string ProtectionPassword { get; set; }
Property Value:

The protection password.

Gets or sets the protection repeat password.

C#
public string ProtectionRepeatPassword { get; set; }
Property Value:

The protection repeat password.

Methods

Applies the changes.

C#
public bool ApplyChanges(string password)
Parameters:passwordstring

The password.

Returns:

bool

A value indicating whether the changes were applied.