GroupStyleSelector GroupStyleSelector GroupStyleSelector Class

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

Syntax

Declaration

public class GroupStyleSelectorpublic class GroupStyleSelectorPublic Class GroupStyleSelector

Constructors summary

Initializes a new instance of the GroupStyleSelector class.

Methods summary

Returns a specific GroupStyle for a given group and level.

Constructors

  • GroupStyleSelector()
    GroupStyleSelector()
    GroupStyleSelector()
    GroupStyleSelector()

    Initializes a new instance of the GroupStyleSelector class.

    public GroupStyleSelector()public GroupStyleSelector()Public Function GroupStyleSelector() As

Methods

  • SelectGroupStyle(System.Object,System.UInt32)
    SelectGroupStyle(System.Object,System.UInt32)
    SelectGroupStyle(System.Object,System.UInt32)
    SelectGroupStyle(System.Object,System.UInt32)

    Returns a specific GroupStyle for a given group and level.

    public GroupStyle SelectGroupStyle(System.Object group,System.UInt32 level)public GroupStyle SelectGroupStyle(System.Object group,System.UInt32 level)Public Function SelectGroupStyle(group As System.Object,level As System.UInt32) As GroupStyle

    Parameters

    • group
      System.Object
      System.Object
      System.Object

      The group to return a GroupStyle for.

    • level
      System.UInt32
      System.UInt32
      System.UInt32

      The level of nesting for the specified group.

    Returns

    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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ComposableAttribute

Details

Assembly

Windows.UI.Xaml.Controls.dll