共用方式為


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 設計工具擴充性