Share via


StyleSelector.SelectStyle(Object, DependencyObject) Method

Definition

Returns a specific Style based on custom logic.

public:
 virtual Style ^ SelectStyle(Platform::Object ^ item, DependencyObject ^ container) = SelectStyle;
Style SelectStyle(IInspectable const& item, DependencyObject const& container);
public Style SelectStyle(object item, DependencyObject container);
function selectStyle(item, container)
Public Function SelectStyle (item As Object, container As DependencyObject) As Style

Parameters

item
Object

Platform::Object

IInspectable

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