File: System\Windows\Controls\ItemContainerTemplateKey.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.
 
 
namespace System.Windows.Controls
{
    /// <summary> Resource key for a ItemContainerTemplate</summary>
    public class ItemContainerTemplateKey : TemplateKey
    {
        /// <summary> Constructor</summary>
        /// <remarks>
        /// When constructed without dataType (e.g. in XAML),
        /// the DataType must be specified as a property.
        /// </remarks>
        public ItemContainerTemplateKey()
            : base(TemplateType.TableTemplate) // This should be TemplateType.ItemContainerTemplate
        {
        }
 
        /// <summary> Constructor</summary>
        public ItemContainerTemplateKey(object dataType)
            : base(TemplateType.TableTemplate, dataType) // This should be TemplateType.ItemContainerTemplate
        {
        }
    }
}