Share via


StyleSelector.SelectStyleCore(Object, DependencyObject) 方法

定義

由衍生類別實作時,根據自訂邏輯傳回特定的 Style

protected:
 virtual Style ^ SelectStyleCore(Platform::Object ^ item, DependencyObject ^ container) = SelectStyleCore;
Style SelectStyleCore(IInspectable const& item, DependencyObject const& container);
protected virtual Style SelectStyleCore(object item, DependencyObject container);
function selectStyleCore(item, container)
Protected Overridable Function SelectStyleCore (item As Object, container As DependencyObject) As Style

參數

item
Object

Platform::Object

IInspectable

內容。

container
DependencyObject

套用樣式的專案。

傳回

要套用的應用程式特定樣式;也可以傳回 Null。

適用於