Class ProtectDialogViewModel
Provides a view model for the protection dialog.
Inherited Members
Namespace: Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class ProtectDialogViewModel : DialogViewModelBase<ProtectDialogContext>
Constructors
ProtectDialogViewModel(ProtectDialogContext, Action)
Initializes a new instance of the ProtectDialogViewModel class.
Declaration
public ProtectDialogViewModel(ProtectDialogContext context, Action closeDialogAction)
Parameters
ProtectDialogContext
context
The context. |
System.Action
closeDialogAction
The close dialog action. |
Properties
CloseCommand
Gets or sets the close command.
Declaration
public ICommand CloseCommand { get; set; }
Property Value
System.Windows.Input.ICommand
The close command. |
DialogHeader
Gets the dialog header.
Declaration
public string DialogHeader { get; }
Property Value
System.String
The dialog header. |
HasProtectionOptions
Gets the value indicating whether there are protection options.
Declaration
public bool HasProtectionOptions { get; }
Property Value
System.Boolean
The value indicating whether there are protection options. |
OkCommand
Gets or sets the ok command.
Declaration
public ICommand OkCommand { get; set; }
Property Value
System.Windows.Input.ICommand
The ok command. |
ProtectionOptions
Gets the protection options.
Declaration
public IEnumerable<ProtectDialogOption> ProtectionOptions { get; }
Property Value
System.Collections.Generic.IEnumerable<ProtectDialogOption>
The protection options. |
ProtectionPassword
Gets or sets the protection password.
Declaration
public string ProtectionPassword { get; set; }
Property Value
System.String
The protection password. |
ProtectionRepeatPassword
Gets or sets the protection repeat password.
Declaration
public string ProtectionRepeatPassword { get; set; }
Property Value
System.String
The protection repeat password. |
Methods
ApplyChanges(String)
Applies the changes.
Declaration
public bool ApplyChanges(string password)
Parameters
System.String
password
The password. |
Returns
System.Boolean
A value indicating whether the changes were applied. |