ValueTranslationService.GetProperties 方法

在派生类中重写时,返回一个包含要针对指定的类型进行转换的属性的枚举。

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

语法

声明
Public MustOverride Function GetProperties ( _
    itemType As Type _
) As IEnumerable(Of PropertyIdentifier)
public abstract IEnumerable<PropertyIdentifier> GetProperties(
    Type itemType
)
public:
virtual IEnumerable<PropertyIdentifier>^ GetProperties(
    Type^ itemType
) abstract
abstract GetProperties : 
        itemType:Type -> IEnumerable<PropertyIdentifier> 
public abstract function GetProperties(
    itemType : Type
) : IEnumerable<PropertyIdentifier>

参数

  • itemType
    类型:System.Type
    要针对其转换属性的类型。

返回值

类型:System.Collections.Generic.IEnumerable<PropertyIdentifier>
一个包含要针对指定的类型进行转换的属性(如果有)的枚举。

备注

自定义控件作者可以通过将要对指定类型进行捕获和转换的属性添加至 Properties 来标识这些属性。

.NET Framework 安全性

请参见

参考

ValueTranslationService 类

Microsoft.Windows.Design.Services 命名空间

DesignModeValueProvider

其他资源

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

WPF 设计器扩展性