Represents a view model for the simple conditional formatting dialog dialog.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class SimpleConditionalFormattingDialogViewModel : DialogViewModelBase<SimpleConditionalFormattingDialogContext>
Inheritance: objectDialogViewModelBase<SimpleConditionalFormattingDialogContext>SimpleConditionalFormattingDialogViewModel
Inherited Members
Constructors
Initializes a new instance of the CreateUpdateSpreadsheetNameDialogViewModel class.
public SimpleConditionalFormattingDialogViewModel(SimpleConditionalFormattingDialogContext context, Action closeDialogAction)
The context.
closeDialogActionActionThe close dialog action.
Properties
Gets or sets the conditional formatting rule argument.
public string Argument { get; set; }
Gets or sets the second conditional formatting rule argument.
public string Argument1 { get; set; }
Gets or sets the close command.
public ICommand CloseCommand { get; set; }
The close command.
Gets the duplicate value types items source.
public IEnumerable<string> ComboBoxItemsSource { get; }
Gets of sets the selected duplicate values type.
public string ComboBoxSelectedItem { get; set; }
Gets the dialog header.
public string DialogHeader { get; }
The dialog header.
Gets the format picker items source.
public IEnumerable<PredefinedConditionalFormat> FormatPickerItemsSource { get; }
Gets the formatting rule type.
public ConditionalFormattingRuleType FormattingRuleType { get; }
Gets or sets whether the argument is percentage.
public bool IsPercentage { get; set; }
Gets or sets the NumericUpDown maximum value.
public int NumericMaximum { get; set; }
Gets or sets the NumericUpDown minimum value.
public int NumericMinimum { get; set; }
Gets or sets the numeric value.
public int NumericValue { get; set; }
Gets or sets the ok command.
public ICommand OkCommand { get; set; }
The ok command.
Gets the rule description.
public string RuleDescription { get; }
Gets or sets the selected predefined format.
public PredefinedConditionalFormat SelectedFormat { get; set; }
Methods
Applies the changes.
public bool ApplyChanges()
The value representing whether the changes have been applied.