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

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:

C#
public class SimpleConditionalFormattingDialogViewModel : DialogViewModelBase<SimpleConditionalFormattingDialogContext>

Inheritance: objectDialogViewModelBase<SimpleConditionalFormattingDialogContext>SimpleConditionalFormattingDialogViewModel

Inherited Members DialogViewModelBase<SimpleConditionalFormattingDialogContext>.Context

Constructors

Initializes a new instance of the CreateUpdateSpreadsheetNameDialogViewModel class.

C#
public SimpleConditionalFormattingDialogViewModel(SimpleConditionalFormattingDialogContext context, Action closeDialogAction)
Parameters:contextSimpleConditionalFormattingDialogContext

The context.

closeDialogActionAction

The close dialog action.

Properties

Gets or sets the conditional formatting rule argument.

C#
public string Argument { get; set; }

Gets or sets the second conditional formatting rule argument.

C#
public string Argument1 { get; set; }

Gets or sets the close command.

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

The close command.

Gets the duplicate value types items source.

C#
public IEnumerable<string> ComboBoxItemsSource { get; }

Gets of sets the selected duplicate values type.

C#
public string ComboBoxSelectedItem { get; set; }

Gets the dialog header.

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

The dialog header.

Gets the format picker items source.

C#
public IEnumerable<PredefinedConditionalFormat> FormatPickerItemsSource { get; }

Gets the formatting rule type.

C#
public ConditionalFormattingRuleType FormattingRuleType { get; }

Gets or sets whether the argument is date.

C#
public bool IsDate { get; set; }

Gets or sets whether the argument is percentage.

C#
public bool IsPercentage { get; set; }

Gets or sets the NumericUpDown maximum value.

C#
public int NumericMaximum { get; set; }

Gets or sets the NumericUpDown minimum value.

C#
public int NumericMinimum { get; set; }

Gets or sets the numeric value.

C#
public int NumericValue { get; set; }

Gets or sets the ok command.

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

The ok command.

Gets the rule description.

C#
public string RuleDescription { get; }

Gets or sets the selected predefined format.

C#
public PredefinedConditionalFormat SelectedFormat { get; set; }

Methods

Applies the changes.

C#
public bool ApplyChanges()
Returns:

bool

The value representing whether the changes have been applied.