Windows Runtime namespace extensions for XAML

This section provides reference information for Windows Runtime XAML constructs that extend the basic XAML language features.

In this section

TopicDescription

Binding markup extension

{Binding} provides a data-bound property value such that the value is deferred until run time. A binding markup extension is converted into an intermediate expression object at XAML load time. The expression and the data context are used by a data binding engine to determine the property value at run time.

CustomResource markup extension

Provides a value for any XAML attribute by evaluating a reference to a resource that comes from a custom resource-lookup implementation. Resource lookup is performed by a CustomXamlResourceLoader class implementation.

RelativeSource markup extension

Provides a means to specify the source of a binding in terms of a relative relationship in the run-time object graph.

StaticResource markup extension

Provides a value for any XAML attribute by evaluating a reference to an already defined resource. Resources are defined in a ResourceDictionary, and a StaticResource usage references the key of that resource in the ResourceDictionary.

TemplateBinding markup extension

Links the value of a property in a control template to the value of some other exposed property on the templated control. TemplateBinding can only be used within a ControlTemplate definition in XAML.

ThemeResource markup extension

Provides a value for any XAML attribute by evaluating a reference to a resource, with additional system logic that retrieves different resources depending on the currently active theme. Similar to StaticResource, resources are defined in a ResourceDictionary, and a ThemeResource usage references the key of that resource in the ResourceDictionary.

 

 

 

Community Additions

ADD
Show:
© 2015 Microsoft