Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.46 KB

itemspaneltemplate.md

File metadata and controls

34 lines (23 loc) · 1.46 KB
-api-id -api-type
T:Windows.UI.Xaml.Controls.ItemsPanelTemplate
winrt class

Windows.UI.Xaml.Controls.ItemsPanelTemplate

-description

Specifies the panel that the ItemsPresenter creates for the layout of the items of an ItemsControl.

-xaml-syntax

<ItemsPanelTemplate ...>
  templateRootElement
</ItemsPanelTemplate>

-remarks

An ItemsPanelTemplate object element should contain exactly one FrameworkElement-derived class that serves as the root element for items. In most cases this is a Panel-derived class. The expanded template serves as the parent for the realized items and there generally is more than one item. Therefore the XAML content property of the intended root element of an ItemsPanelTemplate should support a collection, as Panel.Children does.

Important

The root element of the template declared for the ItemsPanelTemplate in the GroupStyle.Panel property cannot be a virtualizing panel. Virtualizing panels are defined as any type that derives from VirtualizingPanel, for example the VirtualizingStackPanel class.

-examples

-see-also

FrameworkTemplate