Share via


StyleSelector.SelectStyle(Object, DependencyObject) 方法

定義

根據自訂邏輯傳回特定的 Style

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 方法。

適用於