GroupStyle.Panel 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 a template that creates the panel used to lay out the items.
public:
property ItemsPanelTemplate ^ Panel { ItemsPanelTemplate ^ get(); void set(ItemsPanelTemplate ^ value); };
ItemsPanelTemplate Panel();
void Panel(ItemsPanelTemplate value);
public ItemsPanelTemplate Panel { get; set; }
var itemsPanelTemplate = groupStyle.panel;
groupStyle.panel = itemsPanelTemplate;
Public Property Panel As ItemsPanelTemplate
<GroupStyle Panel="itemsPanelTemplateReference" />
- or -
<GroupStyle>
<GroupStyle.Panel>
singleItemsPanelTemplate
</GroupStyle.Panel>
</GroupStyle>
Property Value
An ItemsPanelTemplate object that creates the panel used to layout the items.
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.