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

Provides methods that allow getting property values without reflection.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class BindingExpressionHelper : FrameworkElement

Inheritance: objectBindingExpressionHelper

Constructors

C#
public BindingExpressionHelper()

Methods

Returns a Function that will return the value of the property, specified by the provided propertyPath.

C#
public static Func<object, object> CreateGetValueFunc(Type itemType, string propertyPath)
Parameters:itemTypeType

The type of the instance which property will be returned.

propertyPathstring

The path of the property which value will be returned.

Returns:

Func<object, object>

Gets the value of the specified item using the provided Binding.

C#
public static object GetValue(object item, Binding binding)
Parameters:itemobject

The item.

bindingBinding

The binding.

Returns:

object

The value of the item.

Gets the value of the property specified by the provided propertyPath.

C#
public static object GetValue(object item, string propertyPath)
Parameters:itemobject

The instance which property value will be returned.

propertyPathstring

The path of the property which value will be returned.

Returns:

object