GroupStyle.ContainerStyleSelector Property

Definition

Note

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

Gets or sets a reference to a custom StyleSelector logic class. The StyleSelector referenced by this property returns a style to apply to each generated GroupItem.

/// [get: Windows.Foundation.Metadata.Deprecated("ContainerStyleSelector may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("ContainerStyleSelector may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
StyleSelector ContainerStyleSelector();

void ContainerStyleSelector(StyleSelector value);
public StyleSelector ContainerStyleSelector { [Windows.Foundation.Metadata.Deprecated("ContainerStyleSelector may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; [Windows.Foundation.Metadata.Deprecated("ContainerStyleSelector may be altered or unavailable for releases after Windows 8.1, and is not supported for ItemsControl.GroupStyle.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] set; }
var styleSelector = groupStyle.containerStyleSelector;
groupStyle.containerStyleSelector = styleSelector;
Public Property ContainerStyleSelector As StyleSelector
<GroupStyle ContainerStyleSelector="styleSelectorReference" />

Property Value

An object that derives from StyleSelector. The default is null.

Attributes

Applies to