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

Provides a view model for the unprotect dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class UnprotectDialogViewModel : DialogViewModelBase<UnprotectDialogContext>

Inheritance: objectDialogViewModelBase<UnprotectDialogContext>UnprotectDialogViewModel

Inherited Members DialogViewModelBase<UnprotectDialogContext>.Context

Constructors

Initializes a new instance of the UnprotectDialogViewModel class.

C#
public UnprotectDialogViewModel(UnprotectDialogContext context, Action closeDialogAction)
Parameters:contextUnprotectDialogContext

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 or sets the ok command.

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

The ok command.

Gets or sets the protection password.

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

The protection password.

Methods

Applies the changes.

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

The password.

Returns:

bool