コード例 #1
0
        /// <summary>Initializes a new instance of the <see cref="T:System.Windows.TemplateKey" /> class with the specified parameters. This constructor is protected.</summary>
        /// <param name="templateType">A <see cref="T:System.Windows.TemplateKey.TemplateType" /> value that specifies the type of this template.</param>
        /// <param name="dataType">The type for which this template is designed.</param>
        // Token: 0x06000C10 RID: 3088 RVA: 0x0002CFE4 File Offset: 0x0002B1E4
        protected TemplateKey(TemplateKey.TemplateType templateType, object dataType)
        {
            Exception ex = TemplateKey.ValidateDataType(dataType, "dataType");

            if (ex != null)
            {
                throw ex;
            }
            this._dataType     = dataType;
            this._templateType = templateType;
        }
コード例 #2
0
 protected TemplateKey(TemplateKey.TemplateType templateType)
 {
 }
コード例 #3
0
 protected TemplateKey(TemplateKey.TemplateType templateType, object dataType)
 {
     this.DataType = dataType;
 }
コード例 #4
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Windows.TemplateKey" /> class with the specified template type. This constructor is protected.</summary>
 /// <param name="templateType">A <see cref="T:System.Windows.TemplateKey.TemplateType" /> value that specifies the type of this template.</param>
 // Token: 0x06000C0F RID: 3087 RVA: 0x0002CFCC File Offset: 0x0002B1CC
 protected TemplateKey(TemplateKey.TemplateType templateType)
 {
     this._dataType     = null;
     this._templateType = templateType;
 }