add GeneratedEasingFunction property to get sites loading
[moon.git] / class / WPF.Toolkit / VSM / System / Windows / VisualTransition.cs
blob6a289fee807cfaec1756c13be72a104e7c64bb30
1 // -------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All Rights Reserved.
3 // -------------------------------------------------------------------
5 using System;
6 using System.Collections.Generic;
7 using System.Collections.ObjectModel;
8 using System.ComponentModel;
9 using System.Windows;
10 using System.Windows.Markup;
11 using System.Windows.Media.Animation;
13 namespace System.Windows
15 /// <summary>
16 /// Defines a transition between VisualStates.
17 /// </summary>
18 [ContentProperty("Storyboard")]
19 #if WPF
20 public class VisualTransition : DependencyObject
21 #else
22 public class VisualTransition
23 #endif
25 public VisualTransition()
27 DynamicStoryboardCompleted = true;
28 ExplicitStoryboardCompleted = true;
31 /// <summary>
32 /// Name of the state to transition from.
33 /// </summary>
34 public string From
36 get;
37 set;
40 /// <summary>
41 /// Name of the state to transition to.
42 /// </summary>
43 public string To
45 get;
46 set;
49 /// <summary>
50 /// Storyboard providing fine grained control of the transition.
51 /// </summary>
52 public Storyboard Storyboard
54 get;
55 set;
58 /// <summary>
59 /// Duration of the transition.
60 /// </summary>
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
79 get;
80 set;
83 internal bool ExplicitStoryboardCompleted
85 get;
86 set;
89 private Duration _generatedDuration = new Duration(new TimeSpan());