New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[TelerikToolboxCategory("Data")]
public class RadExpressionEditor : Control, IDisposable

Inheritance: objectRadExpressionEditor

Implements: IDisposable

Constructors

Initializes a new instance of the RadExpressionEditor class.

C#
public RadExpressionEditor()

Fields

ErrorsProperty

DependencyProperty

Identifies the read-only Errors property.

C#
public static readonly DependencyProperty ErrorsProperty

Identifies the ExpressionChanged routed event.

C#
public static readonly RoutedEvent ExpressionChangedEvent

Identifies the ExpressionError routed event.

C#
public static readonly RoutedEvent ExpressionErrorEvent

ExpressionProperty

DependencyProperty

Identifies the read-only Expression property.

C#
public static readonly DependencyProperty ExpressionProperty

ExpressionTextProperty

DependencyProperty

Identifies the ExpressionText property.

C#
public static readonly DependencyProperty ExpressionTextProperty

IsExpressionValidProperty

DependencyProperty

Identifies the read-only IsExpressionValid property.

C#
public static readonly DependencyProperty IsExpressionValidProperty

Identifies the IsFieldsDrillDownEnabled property.

C#
public static readonly DependencyProperty IsFieldsDrillDownEnabledProperty

ItemProperty

DependencyProperty

Identifies the property.

C#
public static readonly DependencyProperty ItemProperty

Properties

Gets the errors from a failed parsing operation.

C#
public IEnumerable<ExpressionParserError> Errors { get; }

Gets the LINQ Expression.

C#
public Expression Expression { get; }

Gets or sets the expression string.

C#
public string ExpressionText { get; set; }

Gets a value indicating whether the string the user has entered is a valid expression.

C#
public bool IsExpressionValid { get; }

Gets or sets a value indicating whether users can drill down into field objects in the Expression editor.

C#
public bool IsFieldsDrillDownEnabled { get; set; }

Gets or sets the item the expression will be evaluated against.

C#
public object Item { get; set; }

Gets or sets the view model of the RadExpressionEditor.

C#
public ExpressionEditorViewModel ViewModel { get; set; }
Exceptions:

ArgumentNullException

if value is null.

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Releases unmanaged and - optionally - managed resources.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

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.

C#
public override void OnApplyTemplate()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the automation infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The class-specific AutomationPeer subclass to return.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Events

Occurs when the expression changes.

C#
public event RadRoutedEventHandler ExpressionChanged

Occurs when an error occurs while parsing an expression.

C#
public event RadRoutedEventHandler ExpressionError

Extension Methods