GroupStyleSelector GroupStyleSelector GroupStyleSelector Class

Definition

Enables custom group style selection logic as a function of the parent group and its level.

public : class GroupStyleSelector : IGroupStyleSelector, IGroupStyleSelectorOverrides
public class GroupStyleSelector : IGroupStyleSelector, IGroupStyleSelectorOverrides
Public Class GroupStyleSelector Implements IGroupStyleSelector, IGroupStyleSelectorOverrides
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

GroupStyleSelector() GroupStyleSelector() GroupStyleSelector()

Initializes a new instance of the GroupStyleSelector class.

public : GroupStyleSelector()
public GroupStyleSelector()
Public Sub New()

Methods

SelectGroupStyle(Object, UInt32) SelectGroupStyle(Object, UInt32) SelectGroupStyle(Object, UInt32)

Returns a specific GroupStyle for a given group and level.

public : GroupStyle SelectGroupStyle(Platform::Object group, unsigned int level)
public GroupStyle SelectGroupStyle(Object group, UInt32 level)
Public Function SelectGroupStyle(group As Object, level As UInt32) As GroupStyle
Parameters
group
Platform::Object Object Object

The group to return a GroupStyle for.

level
unsigned int UInt32 UInt32

The level of nesting for the specified group.

Returns

The@Windows.UI.Xaml.Controls.GroupStyle?text=GroupStyle 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.

SelectGroupStyleCore(Object, UInt32) SelectGroupStyleCore(Object, UInt32) SelectGroupStyleCore(Object, UInt32)

When implemented by a derived class, returns a specific GroupStyle for a given group and level.

protected : virtual GroupStyle SelectGroupStyleCore(Platform::Object group, unsigned int level)
protected virtual GroupStyle SelectGroupStyleCore(Object group, UInt32 level)
Protected Overridable Function SelectGroupStyleCore(group As Object, level As UInt32) As GroupStyle
Parameters
group
Platform::Object Object Object

The group to return a GroupStyle for.

level
unsigned int UInt32 UInt32

The level of nesting for the specified group.

Returns

The GroupStyle to use for the specified group and level.

Remarks

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

See Also

See Also