Windows Dev Center

GroupStyle.ContainerStyle property

[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:
property Style^ ContainerStyle { 
   Style^ get();
   void set (Style^ value);
}


<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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

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:
© 2015 Microsoft