Class BindingExpressionHelper
Provides methods that allow getting property values without reflection.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class BindingExpressionHelper : FrameworkElement
Constructors
BindingExpressionHelper()
Declaration
public BindingExpressionHelper()
Methods
CreateGetValueFunc(Type, String)
Returns a Function that will return the value of the property, specified by the provided propertyPath.
Declaration
public static Func<object, object> CreateGetValueFunc(Type itemType, string propertyPath)
Parameters
System.Type
itemType
The type of the instance which property will be returned. |
System.String
propertyPath
The path of the property which value will be returned. |
Returns
System.Func<System.Object, System.Object>
|
GetValue(Object, String)
Gets the value of the property specified by the provided propertyPath.
Declaration
public static object GetValue(object item, string propertyPath)
Parameters
System.Object
item
The instance which property value will be returned. |
System.String
propertyPath
The path of the property which value will be returned. |
Returns
System.Object
|
GetValue(Object, Binding)
Gets the value of the specified item using the provided Binding.
Declaration
public static object GetValue(object item, Binding binding)
Parameters
System.Object
item
The item. |
System.Windows.Data.Binding
binding
The binding. |
Returns
System.Object
The value of the item. |