Windows.UI.Xaml.Controls.ContentControl.ContentTemplateSelector

June 22, 2022 ยท View on GitHub

-description

Gets or sets a selection object that changes the DataTemplate to apply for content, based on processing information about the content item or its container at run time.

-xaml-syntax

<contentControl ContentTemplateSelector="selectorReference" />

-xaml-values

selectorReference
selectorReferenceA reference to an existing DataTemplateSelector. Typically this is a keyed resource, which you reference through a {StaticResource} markup extension usage.
## -property-value A selection object that changes the [DataTemplate](../windows.ui.xaml/datatemplate.md) to apply for content.

-remarks

-examples

-see-also

DataTemplateSelector