A ViewModel used to loosely-couple components in RadExpressionEditor. Do not use directly.
Definition
Namespace:Telerik.Windows.Controls.Expressions
Assembly:Telerik.Windows.Controls.Expressions.dll
Syntax:
public class ExpressionEditorViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseExpressionEditorViewModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the ExpressionEditorViewModel class.
public ExpressionEditorViewModel()
Properties
Gets the categories of editor items.
public IList<EditorCategoryModel> Categories { get; }
Gets the items in the selected category.
public IEnumerable<EditorItemModel> CategoryItems { get; }
Gets a value indicating whether drill down in fields is enabled.
public bool IsFieldsDrillDownEnabled { get; }
Gets the result of the current expression.
public object PreviewResult { get; }
Gets or sets the selected category.
public EditorCategoryModel SelectedCategory { get; set; }
Gets or sets the selected item.
public EditorItemModel SelectedItem { get; set; }
Methods
Generates all default categories displayed in the RadExpressionEditor.
protected virtual IEnumerable<EditorCategoryModel> GenerateCategories()
IEnumerable<EditorCategoryModel>
A collection of EditorCategoryModel.
Generates the constant item models.
protected virtual IEnumerable<EditorModelBase> GetConstantsItemModels()
A collection of EditorModelBase
Creates the fields category model.
protected virtual EditorCategoryModel GetFieldsCategory()
An instance of EditorCategoryModel.
Generates the field item models for the provided object.
protected virtual IEnumerable<EditorModelBase> GetFieldsItemModels(object currentItem)
The object which properties should be displayed in the fields category.
Returns:A collection of EditorModelBase
Generates the function item models.
protected virtual IEnumerable<EditorModelBase> GetFunctionsItemModels()
A collection of EditorModelBase
Generates the operator item models.
protected virtual IEnumerable<EditorModelBase> GetOperatorsItemModels()
A collection of EditorModelBase