GroupStyle.ContainerStyle property

Applies to Windows and Windows Phone

[ContainerStyle may be altered or unavailable for releases after Windows 8.1 and is not supported for ItemsControl.GroupStyle.]

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

Syntax


public Style ContainerStyle { get; set; }


<GroupStyle ContainerStyle="styleReference" />


<GroupStyle>
  <GroupStyle.ContainerStyle>
    singleStyle
  </GroupStyle.ContainerStyle>
</GroupStyle>  

XAML Values

styleReference

A reference to an existing Style. Typically this is a keyed resource, which you reference through StaticResource.

singleStyle

A single Style object element defined inline, which declares the style and setters for the group item container.

Property value

Type: Style

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

GroupStyle
HeaderContainerStyle
How to group items in a list or grid

 

 

Show:
© 2014 Microsoft