2 using System.Collections.Generic;
3 using System.ComponentModel;
10 /// Transition animation effect
12 [EditorBrowsable(EditorBrowsableState.Never)]
13 public class TransitionAnimation : Animation
16 /// Create an instance of Transition.
18 [EditorBrowsable(EditorBrowsableState.Never)]
19 public TransitionAnimation(int durationMilliSeconds) : base(durationMilliSeconds)
26 /// Screen slides are transitions between one entire screen to another
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public class SlideIn : TransitionAnimation
31 private int defaultInitValue = 0;
34 /// Create an instance of SlideIn.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public SlideIn(int durationMilliSeconds) : base(durationMilliSeconds)
39 Properties = new string[1];
40 DestValue = new string[1];
41 StartTime = new int[1];
45 EndTime[0] = durationMilliSeconds;
47 Properties[0] = "PositionX";
50 defaultInitValue = -Window.Instance.GetWindowSize().Width;
53 internal int GetDefaultInitValue()
55 return defaultInitValue;
61 /// Screen slides are transitions between one entire screen to another
63 [EditorBrowsable(EditorBrowsableState.Never)]
64 public class SlideOut : TransitionAnimation
66 private int defaultInitValue = 0;
69 /// Create an instance of SlideOut.
71 [EditorBrowsable(EditorBrowsableState.Never)]
72 public SlideOut(int durationMilliSeconds) : base(durationMilliSeconds)
74 Properties = new string[1];
75 DestValue = new string[1];
76 StartTime = new int[1];
80 EndTime[0] = durationMilliSeconds;
82 Properties[0] = "PositionX";
84 DestValue[0] = Window.Instance.GetWindowSize().Width.ToString();
89 internal int GetDefaultInitValue()
91 return defaultInitValue;