Udostępnij za pośrednictwem


HubSection.ContentTemplate Property

Definition

Gets or sets the data template that is used to display the content of the HubSection.

DataTemplate ContentTemplate();

void ContentTemplate(DataTemplate value);
public DataTemplate ContentTemplate { get; set; }
var dataTemplate = hubSection.contentTemplate;
hubSection.contentTemplate = dataTemplate;
Public Property ContentTemplate As DataTemplate
<HubSection>
  <HubSection.ContentTemplate>
    dataTemplate
  </HubSection.ContentTemplate>
</HubSection>
- or -
<HubSection ContentTemplate="templateReference"/>

Property Value

The data template that is used to display the content of the HubSection.

Applies to