private Storyboard GetNormalScreenStory() { DoubleAnimation anix = StoryboardFactory.CreateDoubleAnimation(this.gdAnimationView, animationTime, null, 1.0, StoryboardFactory.ScareX); DoubleAnimation aniy = StoryboardFactory.CreateDoubleAnimation(this.gdAnimationView, animationTime, null, 1.0, StoryboardFactory.ScareY); DoubleAnimation opacity = StoryboardFactory.CreateDoubleAnimation(this.recBack, animationTime, 0.0, 1.0, StoryboardFactory.Opacity); Storyboard sb = new Storyboard(); sb.Children.Add(anix); sb.Children.Add(aniy); sb.Children.Add(opacity); return(sb); }
private Storyboard GetFullScreenStory() { double xRage = this.FullScreenPanel.ActualWidth / this.gdAnimationView.Width; double yRage = this.FullScreenPanel.ActualHeight / this.gdAnimationView.Height; this.normalWidth = this.gdAnimationView.ActualWidth; this.normalHeight = this.gdAnimationView.ActualHeight; DoubleAnimation anix = StoryboardFactory.CreateDoubleAnimation(this.gdAnimationView, animationTime, 1, xRage, StoryboardFactory.ScareX); DoubleAnimation aniy = StoryboardFactory.CreateDoubleAnimation(this.gdAnimationView, animationTime, 1, yRage, StoryboardFactory.ScareY); DoubleAnimation opacity = StoryboardFactory.CreateDoubleAnimation(this.recBack, animationTime, 1, 0.0, StoryboardFactory.Opacity); Storyboard sb = new Storyboard(); sb.Children.Add(anix); sb.Children.Add(aniy); sb.Children.Add(opacity); return(sb); }