Share via


ValueTranslationService.HasValueTranslation 方法

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

确定是否应针对指定的类型转换指定的属性。

命名空间:  Microsoft.Windows.Design.Services
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustOverride Function HasValueTranslation ( _
    itemType As Type, _
    identifier As PropertyIdentifier _
) As Boolean
public abstract bool HasValueTranslation(
    Type itemType,
    PropertyIdentifier identifier
)
public:
virtual bool HasValueTranslation(
    Type^ itemType, 
    PropertyIdentifier identifier
) abstract
abstract HasValueTranslation : 
        itemType:Type * 
        identifier:PropertyIdentifier -> bool 
public abstract function HasValueTranslation(
    itemType : Type, 
    identifier : PropertyIdentifier
) : boolean

参数

  • itemType
    类型:System.Type
    在确定是否应转换 property 时所针对的类型。

返回值

类型:System.Boolean
如果指定的属性应针对指定的类型进行转换,则该值为 true;否则该值为 false。

.NET Framework 安全性

请参见

参考

ValueTranslationService 类

Microsoft.Windows.Design.Services 命名空间

DesignModeValueProvider

其他资源

演练:在设计时更改属性的行为

WPF 设计器扩展性