File: src\Framework\System\Windows\Controls\ItemContainerTemplate.cs
Project: wpf\PresentationFramework.csproj (PresentationFramework)
//---------------------------------------------------------------------------
// <copyright file="ItemContainerTemplate.cs" company="Microsoft Corporation">
//     Copyright (C) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------------
 
using System.Windows.Markup;
 
namespace System.Windows.Controls
{
    /// <summary>
    ///   The template that produces a container for an ItemsControl
    /// </summary>
    [DictionaryKeyProperty("ItemContainerTemplateKey")]
    public class ItemContainerTemplate : DataTemplate
    {
 
        /// <summary>
        ///     The key that will be used if the ItemContainerTemplate is added to a
        ///     ResourceDictionary in Xaml without a specified Key (x:Key).
        /// </summary>
        public object ItemContainerTemplateKey
        {
            get
            {
                return (DataType != null) ? new ItemContainerTemplateKey(DataType) : null;
            }
        }
    }
}