Version

DefaultItemsContainer Property

Gets or sets a DataTemplate that will be used as a container when the items are being generated.
Syntax
'Declaration
 
Public Property DefaultItemsContainer As DataTemplate
public DataTemplate DefaultItemsContainer {get; set;}
Remarks

This property takes effect only to the items that are not native containers of the control. For example if you add TextBlock as an item for Infragistics.Controls.Menus.XamMenu, the control will wrap the item with Infragistics.Controls.Menus.XamMenuItem container. For generating of this menu item container, the control will use DataTemplete provided by this property.

The root element of the template provided by DefaultItemsContainer should be the native container of the control. For the Infragistics.Controls.Menus.XamMenu this is Infragistics.Controls.Menus.XamMenuItem. If the root content of the DataTemplate is not a XamMenuItem, the property will be ignored and an Empty XamMenuItem will be used instead

This DataTemplate will be used for each XamMenuItem in the Infragistics.Controls.Menus.XamMenu unless the DefaultItemsContainer is set explicitly on the XamMenuItem itself.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also