TemplateKey 类

定义

用作数据模板的资源键时,允许数据模板参与查找过程。When used as a resource key for a data template, allows the data template to participate in the lookup process.

public ref class TemplateKey abstract : System::Windows::ResourceKey, System::ComponentModel::ISupportInitialize
[System.ComponentModel.TypeConverter(typeof(System.Windows.Markup.TemplateKeyConverter))]
public abstract class TemplateKey : System.Windows.ResourceKey, System.ComponentModel.ISupportInitialize
type TemplateKey = class
    inherit ResourceKey
    interface ISupportInitialize
Public MustInherit Class TemplateKey
Inherits ResourceKey
Implements ISupportInitialize
继承
派生
属性
实现

构造函数

TemplateKey(TemplateKey+TemplateType)

用指定的模板类型初始化 TemplateKey 类的新实例。Initializes a new instance of the TemplateKey class with the specified template type. 此构造函数受到保护。This constructor is protected.

TemplateKey(TemplateKey+TemplateType, Object)

使用指定的参数初始化 TemplateKey 类的新实例。Initializes a new instance of the TemplateKey class with the specified parameters. 此构造函数受到保护。This constructor is protected.

属性

Assembly

获取或设置包含模板定义的程序集。Gets or sets the assembly that contains the template definition.

DataType

获取或设置模板设计所针对的类型。Gets or sets the type for which the template is designed.

方法

Equals(Object)

返回一个值,该值指示给定实例是否与 TemplateKey 的此实例相同。Returns a value that indicates whether the given instance is identical to this instance of TemplateKey.

GetHashCode()

返回 TemplateKey 的此实例的哈希代码。Returns the hash code for this instance of TemplateKey.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ProvideValue(IServiceProvider)

返回此 ResourceKeyReturns this ResourceKey. 此类的实例通常用作字典中的键。Instances of this class are typically used as a key in a dictionary.

(继承自 ResourceKey)
ToString()

返回此 TemplateKey 的字符串表示形式。Returns a string representation of this TemplateKey.

显式接口实现

ISupportInitialize.BeginInit()

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

ISupportInitialize.EndInit()

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

适用于

另请参阅