Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
Syntax
'Declaration
Public Overloads Shared Sub SetBinding(Of )( _
ByVal As Windows.UI.Xaml.FrameworkElement, _
ByVal As Windows.UI.Xaml.DependencyProperty, _
ByVal As , _
ByVal As System.Linq.Expressions.Expression(Of Func(Of T,Object)), _
ByVal As Windows.UI.Xaml.Data.IValueConverter _
)
public static void SetBinding<>(
Windows.UI.Xaml.FrameworkElement ,
Windows.UI.Xaml.DependencyProperty ,
,
System.Linq.Expressions.Expression<Func<T,object>> ,
Windows.UI.Xaml.Data.IValueConverter
)
Parameters
- target
- The target.
- dp
- The dependency property which will be set.
- source
- The source.
- expr
- Expression that returns a property of the source object.
- converter
- The converter that will be applied to the created binding object.
Type Parameters
- T
- Type of the source
See Also