Export (0) Print
Expand All

GroupStyle::ContainerStyle Property

Gets or sets the style that is applied to the GroupItem generated for each item.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public:
property Style^ ContainerStyle {
	Style^ get ();
	void set (Style^ value);
}
<object>
  <object.ContainerStyle>
    <Style .../>
  </object.ContainerStyle>
</object>
<object ContainerStyle="{ResourceExtension StyleResourceKey}"/>

XAML Values

ResourceExtension

One of the following: StaticResource, or DynamicResource. See XAML Resources.

StyleResourceKey

The key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary.

Property Value

Type: System.Windows::Style
The style that is applied to the GroupItem generated for each item. The default is nullptr.

This property is a rare case where creating a Style inline in property element syntax, rather than creating the style as a resource, is a reasonable alternative methodology.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft