Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.21 KB

itemscontrol_itemtemplate.md

File metadata and controls

38 lines (29 loc) · 1.21 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.ItemsControl.ItemTemplate
winrt property

Microsoft.UI.Xaml.Controls.ItemsControl.ItemTemplate

-description

Gets or sets the DataTemplate used to display each item.

-xaml-syntax

<itemsControl>
  <itemsControl.ItemTemplate>
    singleDataTemplate
  </itemsControl.ItemTemplate>
</itemsControl>
- or -
<itemsControl ItemTemplate="resourceReferenceToDataTemplate"/>

-xaml-values

singleDataTemplate
singleDataTemplateA single DataTemplate object element. That DataTemplate would typically have multiple child elements that define the visual appearance of the data representation.
resourceReferenceToDataTemplate
resourceReferenceToDataTemplateA resource reference to an existing DataTemplate from a resources collection. The resource reference must specify the desired DataTemplate by key through a {StaticResource} markup extension usage.
## -property-value The template that specifies the visualization of the data objects. The default is null.

-remarks

-examples

-see-also