DataTemplateKey.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / DataTemplateKey.cs / 1 / DataTemplateKey.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: Resource key for a DataTemplate 
// 
//---------------------------------------------------------------------------
 
using System;
using System.Reflection;

namespace System.Windows 
{
    ///  Resource key for a DataTemplate 
    public class DataTemplateKey : TemplateKey 
    {
        ///  Constructor 
        /// 
        /// When constructed without dataType (e.g. in XAML),
        /// the DataType must be specified as a property.
        ///  
        public DataTemplateKey()
            : base(TemplateType.DataTemplate) 
        { 
        }
 
        ///  Constructor
        public DataTemplateKey(object dataType)
            : base(TemplateType.DataTemplate, dataType)
        { 
        }
    } 
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: Resource key for a DataTemplate 
// 
//---------------------------------------------------------------------------
 
using System;
using System.Reflection;

namespace System.Windows 
{
    ///  Resource key for a DataTemplate 
    public class DataTemplateKey : TemplateKey 
    {
        ///  Constructor 
        /// 
        /// When constructed without dataType (e.g. in XAML),
        /// the DataType must be specified as a property.
        ///  
        public DataTemplateKey()
            : base(TemplateType.DataTemplate) 
        { 
        }
 
        ///  Constructor
        public DataTemplateKey(object dataType)
            : base(TemplateType.DataTemplate, dataType)
        { 
        }
    } 
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK