Items​Panel​Template Items​Panel​Template Items​Panel​Template Class

Definition

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

public sealed class ItemsPanelTemplate : FrameworkTemplate, IItemsPanelTemplatepublic sealed class ItemsPanelTemplate : FrameworkTemplate, IItemsPanelTemplatePublic NotInheritable Class ItemsPanelTemplate Inherits FrameworkTemplate Implements IItemsPanelTemplate
<ItemsPanelTemplate ...>
  templateRootElement
</ItemsPanelTemplate>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

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.

Constructors

ItemsPanelTemplate() ItemsPanelTemplate() ItemsPanelTemplate()

Initializes a new instance of the ItemsPanelTemplate class.

public ItemsPanelTemplate()public ItemsPanelTemplate()Public Sub New()
Attributes