Windows Dev Center

GroupStyleSelector.SelectGroupStyle method

Returns a specific GroupStyle for a given group and level.

Syntax


public GroupStyle SelectGroupStyle(
  object group, 
  uint level
)

Parameters

group

Type: System.Object [.NET] | Platform::Object [C++]

The group to return a GroupStyle for.

level

Type: System.UInt32 [.NET] | uint32 [C++]

The level of nesting for the specified group.

Return value

Type: GroupStyle

TheGroupStyle to use when this GroupStyleSelector is invoked in an application.

Remarks

To provide a specific group style in a derived class, override the SelectGroupStyleCore method.

Windows 8:  In Windows 8, you can pass null as the group parameter value. In Windows 8.1, passing null causes an error.

Requirements (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 (operating system)

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

GroupStyleSelector

 

 

Show:
© 2015 Microsoft