ContentDialog.TitleTemplate Property

Definition

Gets or sets the title template.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentDialog.TitleTemplate.

DataTemplate TitleTemplate();

void TitleTemplate(DataTemplate value);
public DataTemplate TitleTemplate { get; set; }
var dataTemplate = contentDialog.titleTemplate;
contentDialog.titleTemplate = dataTemplate;
Public Property TitleTemplate As DataTemplate
<ContentDialog>
  <ContentDialog.TitleTemplate>
    singleDataTemplate
  </ContentDialog.TitleTemplate>
</ContentDialog>
- or -
<ContentDialog TitleTemplate="resourceReferenceToDataTemplate"/>

Property Value

DataTemplate

The title template.

Applies to