Class SetterValueBindingHelper
Class that implements a workaround for a UWP XAML parser limitation that prevents the following syntax from working: <Setter Property="IsSelected" Value="{Binding IsSelected}"/>.
Inheritance
Namespace: Syncfusion.UI.Xaml.Utils
Assembly: Syncfusion.SfShared.UWP.dll
Syntax
public class SetterValueBindingHelper : Object
Constructors
SetterValueBindingHelper()
Declaration
public SetterValueBindingHelper()
Fields
PropertyBindingProperty
PropertyBinding attached DependencyProperty.
Declaration
public static readonly DependencyProperty PropertyBindingProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Binding
Gets or sets a Binding to set on the specified property.
Declaration
public Binding Binding { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Data.Binding |
Property
Gets or sets a property name for the normal/attached DependencyProperty on which to set the Binding.
Declaration
public string Property { get; set; }
Property Value
Type |
---|
System.String |
Type
Gets or sets an optional type parameter used to specify the type of an attached DependencyProperty as an assembly-qualified name, full name, or short name.
Declaration
public string Type { get; set; }
Property Value
Type |
---|
System.String |
Values
Gets a Collection of SetterValueBindingHelper instances to apply to the target element.
Declaration
public Collection<SetterValueBindingHelper> Values { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.Collection<SetterValueBindingHelper> |
Remarks
Used when multiple Bindings need to be applied to the same element.
Methods
GetPropertyBinding(FrameworkElement)
Gets the value of the PropertyBinding attached DependencyProperty.
Declaration
public static SetterValueBindingHelper GetPropertyBinding(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | element | Element for which to get the property. |
Returns
Type | Description |
---|---|
SetterValueBindingHelper | Value of PropertyBinding attached DependencyProperty. |
SetPropertyBinding(FrameworkElement, SetterValueBindingHelper)
Sets the value of the PropertyBinding attached DependencyProperty.
Declaration
public static void SetPropertyBinding(FrameworkElement element, SetterValueBindingHelper value)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | element | Element on which to set the property. |
SetterValueBindingHelper | value | Value forPropertyBinding attached DependencyProperty. |