VisualState.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / VisualState.cs / 1305600 / VisualState.cs

                            // -------------------------------------------------------------------- 
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// -------------------------------------------------------------------

using System.Windows; 
using System.Windows.Markup;
using System.Windows.Media.Animation; 
 
namespace System.Windows
{ 
    /// 
    ///     A visual state that can be transitioned into.
    /// 
    [ContentProperty("Storyboard")] 
    [RuntimeNameProperty("Name")]
    public class VisualState : DependencyObject 
    { 
        /// 
        ///     The name of the VisualState. 
        /// 
        public string Name
        {
            get; 
            set;
        } 
 
        private static readonly DependencyProperty StoryboardProperty =
            DependencyProperty.Register( 
            "Storyboard",
            typeof(Storyboard),
            typeof(VisualState));
 
        /// 
        ///     Storyboard defining the values of properties in this visual state. 
        ///  
        public Storyboard Storyboard
        { 
            get { return (Storyboard)GetValue(StoryboardProperty); }
            set { SetValue(StoryboardProperty, value); }
        }
    } 
}

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