File: System\Windows\DataTemplateKey.cs
Web Access
Project: src\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
//
//
// Description: Resource key for a DataTemplate
//
 
using System;
using System.Reflection;
 
namespace System.Windows
{
    /// <summary> Resource key for a DataTemplate</summary>
    public class DataTemplateKey : TemplateKey
    {
        /// <summary> Constructor</summary>
        /// <remarks>
        /// When constructed without dataType (e.g. in XAML),
        /// the DataType must be specified as a property.
        /// </remarks>
        public DataTemplateKey()
            : base(TemplateType.DataTemplate)
        {
        }
 
        /// <summary> Constructor</summary>
        public DataTemplateKey(object dataType)
            : base(TemplateType.DataTemplate, dataType)
        {
        }
    }
}