ContainerStyle Property

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)

public Style ContainerStyle { get; set; }

Property Value

Type: System.Windows.Style

The style that is applied to the GroupItem generated for each item. The default is null.

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.

<object ContainerStyle="{ResourceExtension StyleResourceKey}"/>

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft