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