DefinitionProperties.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / DefinitionProperties.cs / 1 / DefinitionProperties.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: A dependency object who defines dependency properties used for 
//  storing information relating to the "x:" namespace ("Definition") in the 
//  corresponding markup.  The properties are set during the parsing stages
//  and can be retrieved afterwards by others who need them. 
//
// History:
//  10/09/2003 : [....] - Initial creation to store x:Uid
// 
//---------------------------------------------------------------------------
 
namespace System.Windows.Markup 
{
internal class DefinitionProperties : DependencyObject 
{
    public static readonly DependencyProperty UidProperty
        = DependencyProperty.RegisterAttached("Uid", typeof(string), typeof(DefinitionProperties), new PropertyMetadata(string.Empty));
 
    public static void SetUid(DependencyObject e, string uid)
    { 
        e.SetValue(UidProperty, uid); 
    }
 
    [DesignerSerializationOptions(DesignerSerializationOptions.SerializeAsAttribute)]
    public static string GetUid(DependencyObject e)
    {
        return e.GetValue(UidProperty).ToString(); 
    }
 
    // This is used for serialization of Uid 
    internal static readonly string UidString = "x:Uid";
} 
}


// 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