ContentPresenter.ContentTemplate Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the template that is used to display the content of the control.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<ContentPresenter ContentTemplate="{Binding}"/>
Property Value
Type: System.Windows.DataTemplateA DataTemplate that defines the visualization of the content. The default is null.
Dependency property identifier field: ContentTemplateProperty
The XAML usage shown is the necessary when a ContentPresenter is part of a DataTemplate. When a ContentPresenter is part of a ControlTemplate, you do not need to template bind the ContentTemplate property.
Show: