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

A ViewModel used to loosely-couple components in RadExpressionEditor. Do not use directly.

Definition

Constructors

Initializes a new instance of the ExpressionEditorViewModel class.

C#
public ExpressionEditorViewModel()

Properties

Gets the categories of editor items.

C#
public IList<EditorCategoryModel> Categories { get; }

Gets the items in the selected category.

C#
public IEnumerable<EditorItemModel> CategoryItems { get; }

Gets a value indicating whether drill down in fields is enabled.

C#
public bool IsFieldsDrillDownEnabled { get; }

Gets the result of the current expression.

C#
public object PreviewResult { get; }

Gets or sets the selected category.

C#
public EditorCategoryModel SelectedCategory { get; set; }

Gets or sets the selected item.

C#
public EditorItemModel SelectedItem { get; set; }

Methods

Generates all default categories displayed in the RadExpressionEditor.

C#
protected virtual IEnumerable<EditorCategoryModel> GenerateCategories()
Returns:

IEnumerable<EditorCategoryModel>

A collection of EditorCategoryModel.

Generates the constant item models.

C#
protected virtual IEnumerable<EditorModelBase> GetConstantsItemModels()
Returns:

IEnumerable<EditorModelBase>

A collection of EditorModelBase

Creates the fields category model.

C#
protected virtual EditorCategoryModel GetFieldsCategory()
Returns:

EditorCategoryModel

An instance of EditorCategoryModel.

Generates the field item models for the provided object.

C#
protected virtual IEnumerable<EditorModelBase> GetFieldsItemModels(object currentItem)
Parameters:currentItemobject

The object which properties should be displayed in the fields category.

Returns:

IEnumerable<EditorModelBase>

A collection of EditorModelBase

Generates the function item models.

C#
protected virtual IEnumerable<EditorModelBase> GetFunctionsItemModels()
Returns:

IEnumerable<EditorModelBase>

A collection of EditorModelBase

Generates the operator item models.

C#
protected virtual IEnumerable<EditorModelBase> GetOperatorsItemModels()
Returns:

IEnumerable<EditorModelBase>

A collection of EditorModelBase