[]
Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
public static void SetBinding<T>(this FrameworkElement target, DependencyProperty dp, T source, Expression<Func<T, object>> expr)
Type | Name | Description |
---|---|---|
FrameworkElement | target | The target. |
DependencyProperty | dp | The dependency property which will be set. |
T | source | The source. |
Expression<Func<T, object>> | expr | Expression that returns a property of the source object. |
Name | Description |
---|---|
T | Type of the source |
Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
public static void SetBinding<T>(this FrameworkElement target, DependencyProperty dp, T source, Expression<Func<T, object>> expr, IValueConverter converter)
Type | Name | Description |
---|---|---|
FrameworkElement | target | The target. |
DependencyProperty | dp | The dependency property which will be set. |
T | source | The source. |
Expression<Func<T, object>> | expr | Expression that returns a property of the source object. |
IValueConverter | converter | The converter that will be applied to the created binding object. |
Name | Description |
---|---|
T | Type of the source |