ContentPresenter.ContentTemplateSelector Property

Definition

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

C#
public DataTemplateSelector ContentTemplateSelector { get; set; }
XAML
<ContentPresenter ContentTemplateSelector="selectorReference" />

Property Value

A selection object that changes the DataTemplate to apply for content.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6