Class
BindingExpressionHelper

Provides methods that allow getting property values without reflection.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class BindingExpressionHelper : FrameworkElement

Inheritance: objectBindingExpressionHelper

Constructors

BindingExpressionHelper()

Declaration

cs-api-definition
public BindingExpressionHelper()

Methods

CreateGetValueFunc(Type, string)

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

Declaration

cs-api-definition
public static Func<object, object> CreateGetValueFunc(Type itemType, string propertyPath)

Parameters

itemType

Type

The type of the instance which property will be returned.

propertyPath

string

The path of the property which value will be returned.

Returns

Func<object, object>

GetValue(object, Binding)

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

Declaration

cs-api-definition
public static object GetValue(object item, Binding binding)

Parameters

item

object

The item.

binding

Binding

The binding.

Returns

object

The value of the item.

GetValue(object, string)

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

Declaration

cs-api-definition
public static object GetValue(object item, string propertyPath)

Parameters

item

object

The instance which property value will be returned.

propertyPath

string

The path of the property which value will be returned.

Returns

object