Jaa


XamlBindingHelper Class

Definition

Provides helper methods for data binding.

public ref class XamlBindingHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlBindingHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XamlBindingHelper
Public NotInheritable Class XamlBindingHelper
Inheritance
Object Platform::Object IInspectable XamlBindingHelper
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

This class is for use in code that is generated by the XAML compiler.

XAML attached properties

XamlBindingHelper is the host service class for a XAML attached property. These attached properties enable child elements to report how they should be positioned in their Grid parent.

In order to support XAML processor access to the attached properties, and also to expose equivalent get and set operations to code, each XAML attached property has a pair of Get and Set accessor methods. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing the identifier field as the dependency property identifier.

Attached property Description
DataTemplateComponent Gets or sets a data template component.

Properties

DataTemplateComponentProperty

Identifies the DataTemplateComponent attached property.

Attached Properties

DataTemplateComponent

Gets or sets a data template component.

Methods

ConvertValue(TypeName, Object)

Converts a value from a source type to a target type.

GetDataTemplateComponent(DependencyObject)

Gets the value of the DataTemplateComponent XAML attached property for a target element.

ResumeRendering(UIElement)

Resumes rendering of the specified element.

SetDataTemplateComponent(DependencyObject, IDataTemplateComponent)

Sets the value of the DataTemplateComponent XAML attached property for a target element.

SetPropertyFromBoolean(Object, DependencyProperty, Boolean)

Sets a DependencyProperty from a Boolean value.

SetPropertyFromByte(Object, DependencyProperty, Byte)

Sets a DependencyProperty from a Byte value.

SetPropertyFromChar16(Object, DependencyProperty, Char)

Sets a DependencyProperty from a Char value.

SetPropertyFromDateTime(Object, DependencyProperty, DateTime)

Sets a DependencyProperty from a DateTime value.

SetPropertyFromDouble(Object, DependencyProperty, Double)

Sets a DependencyProperty from a Double value.

SetPropertyFromInt32(Object, DependencyProperty, Int32)

Sets a DependencyProperty from a Int32 value.

SetPropertyFromInt64(Object, DependencyProperty, Int64)

Sets a DependencyProperty from a Int64 value.

SetPropertyFromObject(Object, DependencyProperty, Object)

Sets a DependencyProperty from a Object value.

SetPropertyFromPoint(Object, DependencyProperty, Point)

Sets a DependencyProperty from a Point value.

SetPropertyFromRect(Object, DependencyProperty, Rect)

Sets a DependencyProperty from a Rect value.

SetPropertyFromSingle(Object, DependencyProperty, Single)

Sets a DependencyProperty from a Single value.

SetPropertyFromSize(Object, DependencyProperty, Size)

Sets a DependencyProperty from a Size value.

SetPropertyFromString(Object, DependencyProperty, String)

Sets a DependencyProperty from a String value.

SetPropertyFromTimeSpan(Object, DependencyProperty, TimeSpan)

Sets a DependencyProperty from a TimeSpan value.

SetPropertyFromUInt32(Object, DependencyProperty, UInt32)

Sets a DependencyProperty from a UInt32 value.

SetPropertyFromUInt64(Object, DependencyProperty, UInt64)

Sets a DependencyProperty from a UInt64 value.

SetPropertyFromUri(Object, DependencyProperty, Uri)

Sets a DependencyProperty from a Uri value.

SuspendRendering(UIElement)

Suspends rendering of the specified element.

Applies to