Language

ContentPresenter.ContentTemplate Property

Definition

Gets or sets the template used to display the content of the control.

public:
 property System::Windows::DataTemplate ^ ContentTemplate { System::Windows::DataTemplate ^ get(); void set(System::Windows::DataTemplate ^ value); };
public System.Windows.DataTemplate ContentTemplate { get; set; }
member this.ContentTemplate : System.Windows.DataTemplate with get, set
Public Property ContentTemplate As DataTemplate

Property Value

A DataTemplate that defines the visualization of the content. The default is null.

Examples

The following example shows a style for the ComboBox control:


Remarks

XAML Text Usage

For XAML information, see TemplateBinding Markup Extension.

Dependency Property Information

Item Value
Identifier field ContentTemplateProperty
Metadata properties set to true AffectsMeasure

Applies to