ClassRadExpressionEditor
A control that lets the user input an expression in string form, which it exposes as a LINQ expression.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Expressions.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadExpressionEditor : Control, IDisposable
Inheritance: objectRadExpressionEditor
Implements:
Constructors
RadExpressionEditor()
Initializes a new instance of the RadExpressionEditor class.
Declaration
public RadExpressionEditor()
Fields
ErrorsProperty
Identifies the read-only Errors property.
Declaration
public static readonly DependencyProperty ErrorsProperty
Field Value
DependencyProperty
ExpressionChangedEvent
Identifies the ExpressionChanged routed event.
Declaration
public static readonly RoutedEvent ExpressionChangedEvent
Field Value
RoutedEvent
ExpressionErrorEvent
Identifies the ExpressionError routed event.
Declaration
public static readonly RoutedEvent ExpressionErrorEvent
Field Value
RoutedEvent
ExpressionProperty
Identifies the read-only Expression property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
DependencyProperty
ExpressionTextProperty
Identifies the ExpressionText property.
Declaration
public static readonly DependencyProperty ExpressionTextProperty
Field Value
DependencyProperty
IsExpressionValidProperty
Identifies the read-only IsExpressionValid property.
Declaration
public static readonly DependencyProperty IsExpressionValidProperty
Field Value
DependencyProperty
IsFieldsDrillDownEnabledProperty
Identifies the IsFieldsDrillDownEnabled property.
Declaration
public static readonly DependencyProperty IsFieldsDrillDownEnabledProperty
Field Value
DependencyProperty
ItemProperty
Identifies the property.
Declaration
public static readonly DependencyProperty ItemProperty
Field Value
DependencyProperty
Properties
Errors
Gets the errors from a failed parsing operation.
Declaration
public IEnumerable<ExpressionParserError> Errors { get; }
Property Value
Expression
Gets the LINQ Expression.
ExpressionText
Gets or sets the expression string.
IsExpressionValid
Gets a value indicating whether the string the user has entered is a valid expression.
IsFieldsDrillDownEnabled
Gets or sets a value indicating whether users can drill down into field objects in the Expression editor.
Declaration
public bool IsFieldsDrillDownEnabled { get; set; }
Property Value
Item
Gets or sets the item the expression will be evaluated against.
ViewModel
Gets or sets the view model of the RadExpressionEditor.
Declaration
public ExpressionEditorViewModel ViewModel { get; set; }
Property Value
Exceptions
if value is null.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
When implemented in a derived class, returns class-specific AutomationPeer implementations for the automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The class-specific AutomationPeer subclass to return.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Events
ExpressionChanged
Occurs when the expression changes.
Declaration
public event RadRoutedEventHandler ExpressionChanged
Event Value
ExpressionError
Occurs when an error occurs while parsing an expression.
Declaration
public event RadRoutedEventHandler ExpressionError
Event Value