New to Telerik UI for WPFStart a free 30-day trial

Holds predefined styles for an items control items' containers.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
public class CustomContainerStyleSelector : StyleSelector

Inheritance: objectCustomContainerStyleSelector

Constructors

Initializes a new instance of the CustomContainerStyleSelector class.

C#
public CustomContainerStyleSelector()

Properties

Gets the holder of all the predefined styles.

C#
public IList ContainerStyles { get; }

Methods

When overridden this method is used for determining the Style of items.

C#
public override Style SelectStyle(object item, DependencyObject container)
Parameters:itemobject

The item for whose container is wanted.

containerDependencyObject

The container for which a Style is selected.

Returns:

Style

The Style for the given container.