RadExpressionEditor
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
Initializes a new instance of the RadExpressionEditor class.
public RadExpressionEditor()
Fields
ErrorsProperty
DependencyProperty
Identifies the read-only Errors property.
public static readonly DependencyProperty ErrorsProperty
ExpressionChangedEvent
RoutedEvent
Identifies the ExpressionChanged routed event.
public static readonly RoutedEvent ExpressionChangedEvent
ExpressionErrorEvent
RoutedEvent
Identifies the ExpressionError routed event.
public static readonly RoutedEvent ExpressionErrorEvent
ExpressionProperty
DependencyProperty
Identifies the read-only Expression property.
public static readonly DependencyProperty ExpressionProperty
ExpressionTextProperty
DependencyProperty
Identifies the ExpressionText property.
public static readonly DependencyProperty ExpressionTextProperty
IsExpressionValidProperty
DependencyProperty
Identifies the read-only IsExpressionValid property.
public static readonly DependencyProperty IsExpressionValidProperty
IsFieldsDrillDownEnabledProperty
DependencyProperty
Identifies the IsFieldsDrillDownEnabled property.
public static readonly DependencyProperty IsFieldsDrillDownEnabledProperty
ItemProperty
DependencyProperty
Identifies the property.
public static readonly DependencyProperty ItemProperty
Properties
Gets the errors from a failed parsing operation.
public IEnumerable<ExpressionParserError> Errors { get; }
Gets the LINQ Expression.
public Expression Expression { get; }
Gets or sets the expression string.
public string ExpressionText { get; set; }
Gets a value indicating whether the string the user has entered is a valid expression.
public bool IsExpressionValid { get; }
Gets or sets a value indicating whether users can drill down into field objects in the Expression editor.
public bool IsFieldsDrillDownEnabled { get; set; }
Gets or sets the item the expression will be evaluated against.
public object Item { get; set; }
Gets or sets the view model of the RadExpressionEditor.
public ExpressionEditorViewModel ViewModel { get; set; }
if value is null.
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
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.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
When implemented in a derived class, returns class-specific AutomationPeer implementations for the automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The class-specific AutomationPeer subclass to return.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Events
Occurs when the expression changes.
public event RadRoutedEventHandler ExpressionChanged
Occurs when an error occurs while parsing an expression.
public event RadRoutedEventHandler ExpressionError