StyleSelector.SelectStyle(Object, DependencyObject) Method

Definition

Returns a specific Style based on custom logic.

C#
public Style SelectStyle(object item, DependencyObject container);

Parameters

item
Object

The content.

container
DependencyObject

The element to which the style is applied.

Returns

An application-specific style to apply; may also return null.

Remarks

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

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6