Share via


StyleSelector.SelectStyle(Object, DependencyObject) 方法

定义

返回基于自定义逻辑的特定 样式

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

参数

item
Object

Platform::Object

IInspectable

内容。

container
DependencyObject

向其应用样式的元素。

返回

要应用的特定于应用程序的样式;也可能返回 null。

注解

若要在派生类中提供特定样式,请重写 SelectStyleCore 方法。

适用于