Visual.Templates Property
List of templates that will be used to populate this Visual.
This list allows you to place nodes with a ux:Template="key"
attribute inside a Visual in UX Markup,
where key
is the match key to be used when selecting a template.
This list has many use cases. For example, when populating a view with data, the correct template can be picked based on a field in the data source:
<StackPanel Items="{items}" MatchKey="type">
<SmallProfile ux:Template="small_profile" />
<BigProfile ux:Template="big_profile" />
</StackPanel>
The name of the template can also have a special significance in certain contexts, for example when dealing with native control wrappers:
<Control ux:Class="MySlider">
<MyWrappers.iOS.Slider ux:Template="iOSAppearance" />
<MyWrappers.Android.Slider ux:Template="AndroidAppearance" />
<MyWrappers.Graphics.Slider ux:Template="GraphicsAppearance" />
</Control>
Location
- Namespace
- Fuse
- Package
- Fuse.Nodes 2.9.1