Share via


JumpListItemForegroundConverter.Convert 方法

定义

如果项不为空,则返回已启用的画笔,否则返回禁用的画笔。

public:
 virtual Platform::Object ^ Convert(Platform::Object ^ value, TypeName targetType, Platform::Object ^ parameter, Platform::String ^ language) = Convert;
IInspectable Convert(IInspectable const& value, TypeName const& targetType, IInspectable const& parameter, winrt::hstring const& language);
public object Convert(object value, System.Type targetType, object parameter, string language);
function convert(value, targetType, parameter, language)
Public Function Convert (value As Object, targetType As Type, parameter As Object, language As String) As Object

参数

value
Object

Platform::Object

IInspectable

要传递给目标的源数据。

targetType
TypeName Type

目标依赖属性所需的数据类型。

parameter
Object

Platform::Object

IInspectable

在转换器逻辑中使用的可选参数。

language
String

Platform::String

winrt::hstring

转换的区域性。

返回

Object

Platform::Object

IInspectable

如果项不为空,则为已启用的画笔,否则为禁用的画笔。

实现

M:Windows.UI.Xaml.Data.IValueConverter.Convert(System.Object,Windows.UI.Xaml.Interop.TypeName,System.Object,System.String) M:Windows.UI.Xaml.Data.IValueConverter.Convert(System.Object,System.Type,System.Object,System.String) M:Windows.UI.Xaml.Data.IValueConverter.Convert(Platform::Object,Windows.UI.Xaml.Interop.TypeName,Platform::Object,Platform::String) M:Windows.UI.Xaml.Data.IValueConverter.Convert(IInspectable,Windows.UI.Xaml.Interop.TypeName,IInspectable,winrt::hstring)

适用于