ItemsView.ItemTemplate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the DataTemplate used to render each item in the collection.
public:
property Microsoft::Maui::Controls::DataTemplate ^ ItemTemplate { Microsoft::Maui::Controls::DataTemplate ^ get(); void set(Microsoft::Maui::Controls::DataTemplate ^ value); };
public Microsoft.Maui.Controls.DataTemplate ItemTemplate { get; set; }
member this.ItemTemplate : Microsoft.Maui.Controls.DataTemplate with get, set
Public Property ItemTemplate As DataTemplate
Property Value
A DataTemplate that defines how items are displayed, or null to use default rendering.
Remarks
The template's binding context is set to each item in the ItemsSource. For dynamic template selection based on item data, use a DataTemplateSelector instead.