1
// -------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All Rights Reserved.
3 // -------------------------------------------------------------------
6 using System
.Collections
.Generic
;
7 using System
.Collections
.ObjectModel
;
8 using System
.ComponentModel
;
10 using System
.Windows
.Markup
;
11 using System
.Windows
.Media
.Animation
;
13 namespace System
.Windows
16 /// Defines a transition between VisualStates.
18 [ContentProperty("Storyboard")]
20 public class VisualTransition
: DependencyObject
22 public class VisualTransition
25 public VisualTransition()
27 DynamicStoryboardCompleted
= true;
28 ExplicitStoryboardCompleted
= true;
32 /// Name of the state to transition from.
41 /// Name of the state to transition to.
50 /// Storyboard providing fine grained control of the transition.
52 public Storyboard Storyboard
59 /// Duration of the transition.
61 [TypeConverter(typeof(System
.Windows
.DurationConverter
))]
62 public Duration GeneratedDuration
64 get { return _generatedDuration; }
65 set { _generatedDuration = value; }
69 public IEasingFunction GeneratedEasingFunction { get; set; }
72 internal bool IsDefault
74 get { return From == null && To == null; }
77 internal bool DynamicStoryboardCompleted
83 internal bool ExplicitStoryboardCompleted
89 private Duration _generatedDuration
= new Duration(new TimeSpan());