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 Expression
Declaration
public ExpressionEditorViewModel()
Properties
Categories
Gets the categories of editor items.
Declaration
public IList<EditorCategoryModel> Categories { get; }
Property Value
System.
|
CategoryItems
Gets the items in the selected category.
Declaration
public IEnumerable<EditorItemModel> CategoryItems { get; }
Property Value
System.
|
IsFieldsDrillDownEnabled
Gets a value indicating whether drill down in fields is enabled.
Declaration
public bool IsFieldsDrillDownEnabled { get; }
Property Value
System.
|
PreviewResult
Gets the result of the current expression.
Declaration
public object PreviewResult { get; }
Property Value
System.
|
SelectedCategory
Gets or sets the selected category.
Declaration
public EditorCategoryModel SelectedCategory { get; set; }
Property Value
SelectedItem
Gets or sets the selected item.
Declaration
public EditorItemModel SelectedItem { get; set; }
Property Value
Methods
GenerateCategories()
Generates all default categories displayed in the Rad
Declaration
protected virtual IEnumerable<EditorCategoryModel> GenerateCategories()
Returns
System. A collection of Editor |
GetConstantsItemModels()
Generates the constant item models.
Declaration
protected virtual IEnumerable<EditorModelBase> GetConstantsItemModels()
Returns
System. A collection of Editor |
GetFieldsCategory()
Creates the fields category model.
Declaration
protected virtual EditorCategoryModel GetFieldsCategory()
Returns
Editor An instance of Editor |
GetFieldsItemModels(Object)
Generates the field item models for the provided object.
Declaration
protected virtual IEnumerable<EditorModelBase> GetFieldsItemModels(object currentItem)
Parameters
System. The object which properties should be displayed in the fields category. |
Returns
System. A collection of Editor |
GetFunctionsItemModels()
Generates the function item models.
Declaration
protected virtual IEnumerable<EditorModelBase> GetFunctionsItemModels()
Returns
System. A collection of Editor |
GetOperatorsItemModels()
Generates the operator item models.
Declaration
protected virtual IEnumerable<EditorModelBase> GetOperatorsItemModels()
Returns
System. A collection of Editor |