private void AntGrid(Grid g) { g.Width = 5; g.Height = 5; g.Visibility = Visibility.Visible; Storyboard sb = new Storyboard(); DoubleAnimation da = new DoubleAnimation(5.0, gridmain.ActualWidth - 10, new Duration(TimeSpan.FromSeconds(2))); DoubleAnimation da1 = new DoubleAnimation(5.0, gridmain.RowDefinitions[0].ActualHeight - 10, new Duration(TimeSpan.FromSeconds(2))); DoubleAnimation da2 = new DoubleAnimation(0, 720, new Duration(TimeSpan.FromSeconds(2))); TransformGroup tg = new TransformGroup(); RotateTransform rt = new RotateTransform(720); tg.Children.Add(rt); g.RenderTransform = tg; g.RenderTransformOrigin = new Point(0.5, 0.5); Storyboard.SetTarget(da2, g); Storyboard.SetTargetProperty(da2, new PropertyPath("(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"));//RotateTransform.AngleProperty sb.Children.Add(da2); Storyboard.SetTarget(da, g); Storyboard.SetTargetProperty(da, new PropertyPath(Grid.WidthProperty)); sb.Children.Add(da); Storyboard.SetTarget(da1, g); Storyboard.SetTargetProperty(da1, new PropertyPath(Grid.HeightProperty)); sb.Children.Add(da1); if (!Resources.Contains("ShowAn")) Resources.Add("ShowAn", sb); sb.AccelerationRatio = 1.0; sb.Begin(); }
public Game(UserControl userControl, Canvas drawingCanvas, Canvas debugCanvas, TextBlock txtDebug) { //Initialize IsActive = true; IsFixedTimeStep = true; TargetElapsedTime = new TimeSpan(0, 0, 0, 0, 16); Components = new List<DrawableGameComponent>(); World = new World(new Vector2(0, 0)); _gameTime = new GameTime(); _gameTime.GameStartTime = DateTime.Now; _gameTime.FrameStartTime = DateTime.Now; _gameTime.ElapsedGameTime = TimeSpan.Zero; _gameTime.TotalGameTime = TimeSpan.Zero; //Setup Canvas DrawingCanvas = drawingCanvas; DebugCanvas = debugCanvas; TxtDebug = txtDebug; UserControl = userControl; //Setup GameLoop _gameLoop = new Storyboard(); _gameLoop.Completed += GameLoop; _gameLoop.Duration = TargetElapsedTime; DrawingCanvas.Resources.Add("gameloop", _gameLoop); }
public ucSchedule() { try { InitializeComponent(); sbFadeIn = (Storyboard)FindResource("sbFadeIn"); sbFadeOut = (Storyboard)FindResource("sbFadeOut"); sbFadeOut.Completed += sbFadeOut_Completed; sbFadeIn.Completed += sbFadeIn_Completed; btnRetry.MouseLeftButtonUp += btnRetry_MouseLeftButtonUp; btnRetry.TouchUp += btnRetry_TouchUp; btnUseLast.MouseLeftButtonUp += btnUseLast_MouseLeftButtonUp; btnUseLast.TouchUp += btnUseLast_TouchUp; timerschedule = new DispatcherTimer(); timerschedule.Interval = TimeSpan.FromSeconds(1); timerschedule.Tick += timerschedule_Tick; timercountdown = new DispatcherTimer(); timercountdown.Interval = TimeSpan.FromSeconds(1); timercountdown.Tick += timercountdown_Tick; } catch { } }
public Window3() { InitializeComponent(); delRun = new DelRun(Run); delUpdateUI = new DelUpdateUI(UpdateUI); sb = (Storyboard)Resources["myAni"]; }
public static Task SmoothSetAsync(this FrameworkElement @this, DependencyProperty dp, double targetvalue, TimeSpan iDuration, CancellationToken iCancellationToken) { TaskCompletionSource<object> tcs = new TaskCompletionSource<object>(); DoubleAnimation anim = new DoubleAnimation(targetvalue, new Duration(iDuration)); PropertyPath p = new PropertyPath("(0)", dp); Storyboard.SetTargetProperty(anim, p); Storyboard sb = new Storyboard(); sb.Children.Add(anim); EventHandler handler = null; handler = delegate { sb.Completed -= handler; sb.Remove(@this); @this.SetValue(dp, targetvalue); tcs.TrySetResult(null); }; sb.Completed += handler; sb.Begin(@this, true); iCancellationToken.Register(() => { double v = (double)@this.GetValue(dp); sb.Stop(); sb.Remove(@this); @this.SetValue(dp, v); tcs.TrySetCanceled(); }); return tcs.Task; }
//得到动画画板 private Storyboard GetStoryboard(double? From1, double To1, double? From2, double To2, double Time1, double Time2) { Storyboard myStoryboard = new Storyboard(); DoubleAnimation myDoubleAnimation = new DoubleAnimation(); if (From1 != null) { myDoubleAnimation.From = From1; } myDoubleAnimation.To = To1; myDoubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(Time1)); myStoryboard.Children.Add(myDoubleAnimation); Storyboard.SetTargetName(myDoubleAnimation, MaskFloor.Name); Storyboard.SetTargetProperty(myDoubleAnimation, new PropertyPath(Rectangle.OpacityProperty)); DoubleAnimation myDoubleAnimation1 = new DoubleAnimation(); if (From2 != null) { myDoubleAnimation1.From = From2; } myDoubleAnimation1.To = To2; myDoubleAnimation1.Duration = new Duration(TimeSpan.FromSeconds(Time2)); myStoryboard.Children.Add(myDoubleAnimation1); Storyboard.SetTargetName(myDoubleAnimation1, InfFloor.Name); Storyboard.SetTargetProperty(myDoubleAnimation1, new PropertyPath(Rectangle.OpacityProperty)); return myStoryboard; }
public static void AnimateScrollIntoViewMainMenu(this ItemsControl itemsControl, object item) { try { ScrollViewer scrollViewer = VisualTreeHelpers.GetVisualChild<ScrollViewer>(itemsControl); UIElement container = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as UIElement; int index = itemsControl.ItemContainerGenerator.IndexFromContainer(container); double toValue = scrollViewer.ExtentWidth * ((double)index / itemsControl.Items.Count); Point relativePoint = container.TranslatePoint(new Point(0.0, 0.0), Window.GetWindow(container)); DoubleAnimation horizontalAnimation = new DoubleAnimation(); horizontalAnimation.From = scrollViewer.HorizontalOffset; horizontalAnimation.To = toValue; horizontalAnimation.DecelerationRatio = .2; horizontalAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(1000)); Storyboard storyboard = new Storyboard(); storyboard.Children.Add(horizontalAnimation); Storyboard.SetTarget(horizontalAnimation, scrollViewer); Storyboard.SetTargetProperty(horizontalAnimation, new PropertyPath(ScrollViewerBehavior.HorizontalOffsetProperty)); storyboard.Begin(); } catch (Exception) { } }
public Scanner() { InitializeComponent(); // Hook up to storyboard(s) FrameworkElement templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement; if (null != templateRoot) { foreach (VisualStateGroup group in VisualStateManager.GetVisualStateGroups(templateRoot)) { if (VisibilityGroupName == group.Name) { foreach (VisualState state in group.States) { if ((ClosedVisibilityStateName == state.Name) && (null != state.Storyboard)) { _closedStoryboard = state.Storyboard; _closedStoryboard.Completed += OnClosedStoryboardCompleted; } } } } } // Play the Open state VisualStateManager.GoToState(this, OpenVisibilityStateName, true); }
void InitializeNotificationBar() { _storyboard = new Storyboard(); _storyboard.Completed += _storyboard_Completed; var animation0 = new DoubleAnimation(1, new Duration(TimeSpan.FromSeconds(0.1))); Storyboard.SetTarget(animation0, notify_br); Storyboard.SetTargetProperty(animation0, new PropertyPath(Border.OpacityProperty)); _storyboard.Children.Add(animation0); var animation = new DoubleAnimation(0, new Duration(TimeSpan.FromSeconds(0.5))); animation.EasingFunction = new CircleEase { EasingMode = EasingMode.EaseOut }; Storyboard.SetTarget(animation, notify_br); Storyboard.SetTargetProperty(animation, new PropertyPath("(Border.RenderTransform).Y")); _storyboard.Children.Add(animation); var animation2 = new DoubleAnimation(40, new Duration(TimeSpan.FromSeconds(0.5))); animation2.BeginTime = TimeSpan.FromSeconds(3); animation2.EasingFunction = new CircleEase { EasingMode = EasingMode.EaseIn }; Storyboard.SetTarget(animation2, notify_br); Storyboard.SetTargetProperty(animation2, new PropertyPath("(Border.RenderTransform).Y")); _storyboard.Children.Add(animation2); var animation3 = new DoubleAnimation(0, new Duration(TimeSpan.Zero)); animation3.BeginTime = TimeSpan.FromSeconds(3.5); Storyboard.SetTarget(animation3, notify_br); Storyboard.SetTargetProperty(animation3, new PropertyPath(Border.OpacityProperty)); _storyboard.Children.Add(animation3); }
private async void SlideIn() { Opacity = 1.0; var workingArea = Screen.PrimaryScreen.WorkingArea; var aTop = new DoubleAnimation { From = workingArea.Bottom + Height, To = (workingArea.Bottom - Height) - 5.0, Duration = new Duration(TimeSpan.FromSeconds(0.5)) }; var aBottom = new DoubleAnimation { To = (workingArea.Bottom + Height) + 5.0, Duration = new Duration(TimeSpan.FromSeconds(0.5)) }; var storyboard = new Storyboard(); storyboard.Children.Add(aTop); Storyboard.SetTarget(aTop, this); Storyboard.SetTargetProperty(aTop, new PropertyPath(TopProperty)); await Extensions.BeginAsync(storyboard); await Task.Delay(0xbb8); storyboard.Children.Clear(); storyboard.Children.Add(aBottom); Storyboard.SetTarget(aBottom, this); Storyboard.SetTargetProperty(aBottom, new PropertyPath(TopProperty)); await Extensions.BeginAsync(storyboard); Close(); }
public static Storyboard CreateStoryboard(List<IModel> models, Storyboard sourceStoryboard) { Storyboard _storyboard; if (sourceStoryboard != null) _storyboard = sourceStoryboard; else _storyboard = new Storyboard(); foreach (var item in models) { switch (item.ModelType) { case IModelType.Double:_storyboard.Children.Add(Components.DoubleComponents.BuildDoubleAnimation(item as DoubleModel)); break; case IModelType.DoubleKeyFrames:_storyboard.Children.Add(Components.DoubleComponents.BuildDoubleKeyFramesAnimation(item as DoubleKeyFramesModel)); break; case IModelType.Color:_storyboard.Children.Add(Components.ColorComponents.BuildColorAnimation(item as ColorModel)); break; case IModelType.ColorKeyFrames:_storyboard.Children.Add(Components.ColorComponents.BuildColorKeyFramesAnimation(item as ColorKeyFramesModel)); break; case IModelType.Point:_storyboard.Children.Add(Components.PointComponents.BuildPointAnimation(item as PointModel)); break; case IModelType.PointKeyFrames:_storyboard.Children.Add(Components.PointComponents.BuildPointKeyFramesAnimation(item as PointKeyFramesModel)); break; case IModelType.ObjectKeyFrames:_storyboard.Children.Add(Components.ObjectComponents.BuildObjectKeyFramesAnimation(item as ObjectKeyFramesModel)); break; default: break; } } return _storyboard; }
private static void TypewriteTextblock(string textToAnimate, TextBlock txt, TimeSpan timeSpan) { var story = new Storyboard { FillBehavior = FillBehavior.HoldEnd }; DiscreteStringKeyFrame discreteStringKeyFrame; var stringAnimationUsingKeyFrames = new StringAnimationUsingKeyFrames { Duration = new Duration(timeSpan) }; var tmp = string.Empty; foreach (var c in textToAnimate) { discreteStringKeyFrame = new DiscreteStringKeyFrame { KeyTime = KeyTime.Paced }; tmp += c; discreteStringKeyFrame.Value = tmp; stringAnimationUsingKeyFrames.KeyFrames.Add(discreteStringKeyFrame); } Storyboard.SetTargetName(stringAnimationUsingKeyFrames, txt.Name); Storyboard.SetTargetProperty(stringAnimationUsingKeyFrames, new PropertyPath(TextBlock.TextProperty)); story.Children.Add(stringAnimationUsingKeyFrames); story.Begin(txt); }
public PopupMsg(TextBlock msg) { //Store TextBlock for message display this.msg = msg; //Register the textblock's name, this is necessary for creating Storyboard using codes instead of XAML NameScope.SetNameScope(msg, new NameScope()); msg.RegisterName("fadetext", msg); //Create the fade in & fade out animation DoubleAnimationUsingKeyFrames fadeInOutAni = new DoubleAnimationUsingKeyFrames(); LinearDoubleKeyFrame keyframe = new LinearDoubleKeyFrame(); keyframe.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2)); keyframe.Value = 1; fadeInOutAni.KeyFrames.Add(keyframe); //keyframe = new LinearDoubleKeyFrame(); fadeInOutAni.Duration = new Duration(TimeSpan.FromSeconds(4)); fadeInOutAni.AutoReverse = true; fadeInOutAni.AccelerationRatio = .2; fadeInOutAni.DecelerationRatio = .7; // Configure the animation to target the message's opacity property Storyboard.SetTargetName(fadeInOutAni, "fadetext"); Storyboard.SetTargetProperty(fadeInOutAni, new PropertyPath(TextBlock.OpacityProperty)); // Add the fade in & fade out animation to the Storyboard Storyboard fadeInOutStoryBoard = new Storyboard(); fadeInOutStoryBoard.Children.Add(fadeInOutAni); // Set event trigger, make this animation played on an event we can control msg.IsVisibleChanged += delegate(object sender, System.Windows.DependencyPropertyChangedEventArgs e) { if (msg.IsVisible) fadeInOutStoryBoard.Begin(msg); }; }
public PressureTank() { InitializeComponent(); // Initialize visualization resources _pumpingStoryboard = (Storyboard)Resources["RotatePump"]; _pumpingStoryboard.Begin(); _pressureLevelStoryboard = (Storyboard)Resources["PressureLevel"]; _pressureLevelStoryboard.Begin(); _pressureLevelStoryboard.Pause(); _timerAlertStoryboard = (Storyboard)Resources["TimerEvent"]; _sensorAlertStoryboard = (Storyboard)Resources["SensorEvent"]; // Initialize the simulation environment _simulator = new RealTimeSimulator(_model, stepDelay: 1000); _simulator.SimulationStateChanged += (o, e) => UpdateSimulationButtonVisibilities(); _simulator.ModelStateChanged += (o, e) => UpdateModelState(); // Initialize the visualization state UpdateSimulationButtonVisibilities(); UpdateModelState(); TimerAlert.Opacity = 0; SensorAlert.Opacity = 0; ChangeSpeed(8); }
//======================================================================================== // Constructors //======================================================================================== /// <summary> /// This constructor must be called by implementors or the fading functionality /// will not work. /// </summary> public FadingWindow() : base() { this.Opacity = 0.0; // by setting it hidden, this hides the window from the Alt-Tab program switcher this.Visibility = Visibility.Hidden; DoubleAnimation animation = new DoubleAnimation( HiddenOpacity, VisibleOpacity, new Duration(TimeSpan.FromMilliseconds(300))); animation.BeginTime = TimeSpan.FromMilliseconds(100); animation.AutoReverse = false; this.fadeInStoryboard = new Storyboard(); this.fadeInStoryboard.Children.Add(animation); this.fadeInStoryboard.Completed += new EventHandler(ShowCompleted); animation = new DoubleAnimation( VisibleOpacity, HiddenOpacity, new Duration(TimeSpan.FromMilliseconds(500))); animation.BeginTime = TimeSpan.FromMilliseconds(100); animation.AutoReverse = false; this.fadeOutStoryboard = new Storyboard(); this.fadeOutStoryboard.Children.Add(animation); this.fadeOutStoryboard.Completed += new EventHandler(HideCompleted); this.timer = new DispatcherTimer(); this.timer.Tick += new EventHandler(InitiateFadeOut); this.timer.Interval = DefaultFadeOutDelay; }
/// <summary> /// Creates a Storyboard with this Timeline, sets the target and target property /// accordingly, and begins the animation. /// </summary> /// <param name="animation">The Timeline that will be started.</param> /// <param name="target">The actual instance of the object to target.</param> /// <param name="propertyPath">A dependency property identifier or property path string that describes the /// property that will be animated.</param> public static void BeginAnimation(this Timeline animation, DependencyObject target, object propertyPath) { animation.SetTargetAndProperty(target, propertyPath); var sb = new Storyboard(); sb.Children.Add(animation); sb.Begin(); }
public static void Animate(this DependencyObject target, double from, double to, object propertyPath, int duration, int startTime, IEasingFunction easing = null, Action completed = null) { if (easing == null) easing = new SineEase(); var db = new DoubleAnimation(); db.To = to; db.From = from; db.EasingFunction = easing; db.Duration = TimeSpan.FromMilliseconds(duration); Storyboard.SetTarget(db, target); Storyboard.SetTargetProperty(db, new PropertyPath(propertyPath)); var sb = new Storyboard(); sb.BeginTime = TimeSpan.FromMilliseconds(startTime); if (completed != null) { sb.Completed += (s, e) => completed(); } sb.Children.Add(db); sb.Begin(); }
private void PerformAppearanceAnimation() { double w = System.Windows.Application.Current.Host.Content.ActualWidth; double h = System.Windows.Application.Current.Host.Content.ActualHeight; CompositeTransform ct = (CompositeTransform)LayoutRoot.RenderTransform; ct.TranslateY = h; LayoutRoot.Visibility = Visibility.Visible; Storyboard animation = new Storyboard(); animation.Duration = new Duration(TimeSpan.FromSeconds(0.3)); // Y animation DoubleAnimation galleryAnimation = new DoubleAnimation(); galleryAnimation.Duration = new Duration(TimeSpan.FromSeconds(0.3)); galleryAnimation.To = 0.0; galleryAnimation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseOut }; Storyboard.SetTarget(galleryAnimation, LayoutRoot); Storyboard.SetTargetProperty(galleryAnimation, new PropertyPath("(UIElement.RenderTransform).(CompositeTransform.TranslateY)")); animation.Children.Add(galleryAnimation); animation.Begin(); animation.Completed += (sender, e) => { OnPageAppeared(); }; }
public LoginView() { this.InitializeComponent(); this.confirmSpinnerAnimation = (Storyboard)this.Resources["RotateConfirmSpinner"]; this.IsVisibleChanged += this.onIsVisibleChanged; }
public static void SetScrollEffect(DependencyObject obj, int value) { var elem = obj as FrameworkElement; var transGroup = new TransformGroup(); transGroup.Children.Add(new ScaleTransform()); transGroup.Children.Add(new SkewTransform()); transGroup.Children.Add(new RotateTransform()); transGroup.Children.Add(new TranslateTransform()); elem.RenderTransform = transGroup; var sb = new Storyboard(); var da = new DoubleAnimationUsingKeyFrames(); Storyboard.SetTarget(da, obj); Storyboard.SetTargetProperty(da, new PropertyPath("(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)", new object[0])); da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.Zero), Value = 60 }); da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value)), Value = 60 }); da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value + 900)), Value = 0, EasingFunction = new CircleEase { EasingMode = EasingMode.EaseOut } }); sb.Children.Add(da); var da2 = new DoubleAnimationUsingKeyFrames(); Storyboard.SetTarget(da2, obj); Storyboard.SetTargetProperty(da2, new PropertyPath(UIElement.OpacityProperty)); da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.Zero), Value = 0 }); da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value)), Value = 0 }); da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value + 400)), Value = 1 }); sb.Children.Add(da2); elem.Loaded += (a, b) => { sb.Begin(); }; obj.SetValue(ScrollEffectProperty, value); }
public LoadingSpin() { InitializeComponent(); this.FlashText.Begin(); this.intervalTimer = new Storyboard() { Duration = new Duration(TimeSpan.FromMilliseconds(100)) }; this.intervalTimer.Completed += new EventHandler(this.OnIntervalTimerCompleted); this.animations = new List<Storyboard>() { CycleAnimation0, CycleAnimation1, CycleAnimation2, CycleAnimation3, CycleAnimation4, CycleAnimation5, CycleAnimation6, CycleAnimation7, CycleAnimation8, CycleAnimation9 }; this.Loaded += new RoutedEventHandler(LoadingSpin_Loaded); }
private void DrawLeftPage() { //Tworzę obiekt canvas Canvas cv = new Canvas(); cv.Width = 100; cv.Height = 100; SolidColorBrush sb = new SolidColorBrush(Color.FromArgb(255, 0, 255, 255)); cv.Background = sb; Canvas.SetLeft(cv, 150); Canvas.SetTop(cv, 100); //Projekcja PlaneProjection pp = new PlaneProjection(); pp.LocalOffsetX = -50.0; cv.Projection = pp; //Dodaję canvas plutno.Children.Add(cv); //Tworzę animację stL = new Storyboard(); DoubleAnimation db = new DoubleAnimation(); db.Duration = new Duration(TimeSpan.FromMilliseconds(1000)); db.From = 0.0; db.To = -180.0; Storyboard.SetTarget(db, pp); Storyboard.SetTargetProperty(db, new PropertyPath(PlaneProjection.RotationYProperty)); //Dodanie animacji do storyboarda stL.Children.Add(db); }
internal void fade(bool fadein) { // Create a storyboard to contain the animations. storyboard = new Storyboard(); TimeSpan duration = new TimeSpan(0, 0, 1); // Create a DoubleAnimation to fade the not selected option control DoubleAnimation animation = new DoubleAnimation(); if (fadein) { animation.From = 0.0; animation.To = 1.0; } else { animation.From = 1.0; animation.To = 0.0; } animation.Duration = new Duration(duration); // Configure the animation to target de property Opacity Storyboard.SetTargetName(animation, this.uiImage.Name); Storyboard.SetTargetProperty(animation, new PropertyPath(Image.OpacityProperty)); // Add the animation to the storyboard storyboard.Children.Add(animation); // Begin the storyboard storyboard.Begin(this.uiImage); }
public void Shake() { if (sb != null && sb.GetCurrentState() == ClockState.Active) return; sb = (Storyboard)Resources["shaking"]; sb.Begin(); }
static Tilt() { tiltStoryboard = new Storyboard(); untiltStoryboard = new Storyboard(); depressAnimation = new DoubleAnimation { From = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(depressAnimation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.GlobalOffsetZ)")); tiltStoryboard.Children.Add(depressAnimation); rotationXAnimation = new DoubleAnimation { From = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(rotationXAnimation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.RotationX)")); tiltStoryboard.Children.Add(rotationXAnimation); rotationYAnimation = new DoubleAnimation { From = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(rotationYAnimation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.RotationY)")); tiltStoryboard.Children.Add(rotationYAnimation); DoubleAnimation animation = new DoubleAnimation { To = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(animation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.GlobalOffsetZ)")); untiltStoryboard.Children.Add(animation); animation = new DoubleAnimation { To = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(animation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.RotationX)")); untiltStoryboard.Children.Add(animation); animation = new DoubleAnimation { To = 0, Duration = TimeSpan.FromSeconds(.05) }; Storyboard.SetTargetProperty(animation, new PropertyPath("(FrameworkElement.Projection).(PlaneProjection.RotationY)")); untiltStoryboard.Children.Add(animation); }
void animating3_Completed(object sender, EventArgs e) { if(MainWindow.stopGesture) { myText.Content = " 2"; var animation2Opacity = new DoubleAnimation(); animation2Opacity.From = 1.0; animation2Opacity.To = 0; animation2Opacity.Duration = new Duration(TimeSpan.FromMilliseconds(1000)); Storyboard.SetTarget(animation2Opacity, myText); Storyboard.SetTargetProperty(animation2Opacity, new PropertyPath(UIElement.OpacityProperty)); Storyboard animating2 = new Storyboard(); animating2.Children.Add(animation2Opacity); animating2.Completed += animating2_Completed; animating2.Begin(); } else { myText.Visibility = Visibility.Collapsed; animationStarted = false; } }
public void DismissEVHUD() { if (evHUDView == null) { return; } Storyboard storyboard = new Storyboard(); Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); storyboard.Duration = duration; DoubleAnimation panelAnimation = new DoubleAnimation(); panelAnimation.Duration = duration; panelAnimation.To = evHUDView.Width; panelAnimation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseOut }; Storyboard.SetTarget(panelAnimation, evHUDView); Storyboard.SetTargetProperty(panelAnimation, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)")); storyboard.Children.Add(panelAnimation); storyboard.Begin(); storyboard.Completed += (sender, e) => { evHUDView.Visibility = Visibility.Collapsed; if (Orientation == PageOrientation.LandscapeLeft || Orientation == PageOrientation.LandscapeRight) { ShowLandscapeShutterButton(); } }; }
private void PerformCaptureAnimation() { LoadingView.Text = "Processing ..."; ShowLoadingView(); curtain = new Rectangle(); curtain.Fill = new SolidColorBrush(Colors.White); LayoutRoot.Children.Add(curtain); Storyboard animation = new Storyboard(); Duration duration = new Duration(TimeSpan.FromSeconds(0.3)); animation.Duration = duration; DoubleAnimation curtainAnimation = new DoubleAnimation(); animation.Children.Add(curtainAnimation); curtainAnimation.Duration = duration; curtainAnimation.To = 0; curtainAnimation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseIn }; Storyboard.SetTarget(curtainAnimation, curtain); Storyboard.SetTargetProperty(curtainAnimation, new PropertyPath("Opacity")); animation.Completed += (sender, e) => { LayoutRoot.Children.Remove(curtain); }; animation.Begin(); }
public UpdateCell(TextBlock tb, Storyboard sbUp, Storyboard sbDown, Storyboard sbSame) { this.tb = tb; this.sbUp = sbUp; this.sbDown = sbDown; this.sbSame = sbSame; }
/// <summary> /// 登录窗体逐渐缩小动画 /// </summary> private void BeginEnterAnimation() { NameScope.SetNameScope(this, new NameScope()); ScaleTransform st = this.RenderTransform as ScaleTransform; this.RegisterName("scale", st); Storyboard sb = new Storyboard(); sb.Completed += (s, e) => { this.Hide(); new MainWindow().Show(); }; DoubleAnimation daX = new DoubleAnimation(); daX.To = 0; daX.Duration = TimeSpan.FromSeconds(0.3); DoubleAnimation daY = new DoubleAnimation(); daY.To = 0; daY.Duration = TimeSpan.FromSeconds(0.3); Storyboard.SetTargetName(daX, "scale"); Storyboard.SetTargetProperty(daX, new PropertyPath(ScaleTransform.ScaleXProperty)); Storyboard.SetTargetName(daY, "scale"); Storyboard.SetTargetProperty(daY, new PropertyPath(ScaleTransform.ScaleYProperty)); sb.Children.Add(daX); sb.Children.Add(daY); sb.Begin(this); //ST.BeginAnimation(ScaleTransform.ScaleXProperty, new DoubleAnimation(0, new Duration(TimeSpan.FromSeconds(1)))); //ST.BeginAnimation(ScaleTransform.ScaleYProperty, new DoubleAnimation(0, new Duration(TimeSpan.FromSeconds(1)))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Smart%20Challenge;component/lvlSet9/s9lvl13.xaml", System.UriKind.Relative)); this.go = ((System.Windows.Media.Animation.Storyboard)(this.FindName("go"))); this.grid1 = ((System.Windows.Controls.Grid)(this.FindName("grid1"))); this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1"))); this.Instr = ((System.Windows.Controls.TextBlock)(this.FindName("Instr"))); this.p2 = ((System.Windows.Controls.Image)(this.FindName("p2"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Database(fireworks);component/ImageCarousel.xaml", System.UriKind.Relative)); this.DrillDownStory = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DrillDownStory"))); this.DrillUpStory = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DrillUpStory"))); this.DrillAppearStory = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DrillAppearStory"))); this.DrillDisappearStory = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DrillDisappearStory"))); this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/NasaReader;component/MainPage.xaml", System.UriKind.Relative)); this.MainPage1 = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("MainPage1"))); this.EnterStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("EnterStoryboard"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.NasaTitle = ((System.Windows.Controls.TextBlock)(this.FindName("NasaTitle"))); this.NasaLogo = ((System.Windows.Controls.Image)(this.FindName("NasaLogo"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Hoan_Xich_Huong;component/Tables/Table4.xaml", System.UriKind.Relative)); this.animation1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("animation1"))); this.border_main = ((System.Windows.Controls.Border)(this.FindName("border_main"))); this.rotate1 = ((System.Windows.Media.TranslateTransform)(this.FindName("rotate1"))); this.xemthem = ((System.Windows.Controls.Border)(this.FindName("xemthem"))); this.textxemthem = ((System.Windows.Controls.HyperlinkButton)(this.FindName("textxemthem"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myStoryBoard = ((System.Windows.Media.Animation.Storyboard)(target)); return; case 2: this.rotation = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.HelperText = ((System.Windows.Controls.TextBlock)(target)); return; case 2: this.HelperTextAnimation = ((System.Windows.Media.Animation.Storyboard)(target)); return; } this._contentLoaded = true; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/kelime_oyunu;component/Kelime.xaml", System.UriKind.Relative)); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.Storyboard2 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard2"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.regularPolygon = ((System.Windows.Shapes.Path)(this.FindName("regularPolygon"))); this.TextHarf = ((System.Windows.Controls.Label)(this.FindName("TextHarf"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightMarquee;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.canvas1 = ((System.Windows.Controls.Canvas)(this.FindName("canvas1"))); this.animation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("animation"))); this.ScrollText = ((System.Windows.Controls.TextBlock)(this.FindName("ScrollText"))); this.ScrollText2 = ((System.Windows.Controls.Image)(this.FindName("ScrollText2"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Zires%20Explorer;component/Player/Player.xaml", System.UriKind.Relative)); this.ZiresPlayer = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("ZiresPlayer"))); this.backAnimation_1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("backAnimation_1"))); this.backAnimation_2 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("backAnimation_2"))); this.showcontrols = ((System.Windows.Media.Animation.Storyboard)(this.FindName("showcontrols"))); this.hidecontrols = ((System.Windows.Media.Animation.Storyboard)(this.FindName("hidecontrols"))); this.showAudio = ((System.Windows.Media.Animation.Storyboard)(this.FindName("showAudio"))); this.hideAudio = ((System.Windows.Media.Animation.Storyboard)(this.FindName("hideAudio"))); this.SongChangedAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SongChangedAnimation"))); this.planeProjection = ((System.Windows.Media.PlaneProjection)(this.FindName("planeProjection"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.all = ((Microsoft.Phone.Controls.Pivot)(this.FindName("all"))); this.sn = ((System.Windows.Controls.TextBlock)(this.FindName("sn"))); this.PlaneProjectionSongNameTextBlock = ((System.Windows.Media.PlaneProjection)(this.FindName("PlaneProjectionSongNameTextBlock"))); this.sa = ((System.Windows.Controls.TextBlock)(this.FindName("sa"))); this.PlaneProjectionArtistTextBlock = ((System.Windows.Media.PlaneProjection)(this.FindName("PlaneProjectionArtistTextBlock"))); this.AlbumArt = ((System.Windows.Controls.Image)(this.FindName("AlbumArt"))); this.PlaneProjectionAlbumArt = ((System.Windows.Media.PlaneProjection)(this.FindName("PlaneProjectionAlbumArt"))); this.info = ((System.Windows.Controls.Button)(this.FindName("info"))); this.songsList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("songsList"))); this.albumsList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("albumsList"))); this.AudioControls = ((System.Windows.Controls.Grid)(this.FindName("AudioControls"))); this.name = ((System.Windows.Controls.TextBlock)(this.FindName("name"))); this.position = ((System.Windows.Controls.TextBlock)(this.FindName("position"))); this.lenght = ((System.Windows.Controls.TextBlock)(this.FindName("lenght"))); this.slider = ((System.Windows.Controls.Slider)(this.FindName("slider"))); this.playPause = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("playPause"))); this.volumeButton = ((System.Windows.Controls.Button)(this.FindName("volumeButton"))); this.sto = ((System.Windows.Media.PlaneProjection)(this.FindName("sto"))); this.goToNowPlaying = ((System.Windows.Controls.Button)(this.FindName("goToNowPlaying"))); this.next = ((System.Windows.Controls.Button)(this.FindName("next"))); this.nex = ((System.Windows.Media.PlaneProjection)(this.FindName("nex"))); this.previous = ((System.Windows.Controls.Button)(this.FindName("previous"))); this.pre = ((System.Windows.Media.PlaneProjection)(this.FindName("pre"))); this.Audio = ((System.Windows.Controls.Grid)(this.FindName("Audio"))); this.audioPlaneProjection = ((System.Windows.Media.PlaneProjection)(this.FindName("audioPlaneProjection"))); this.audioBorder = ((System.Windows.Controls.Border)(this.FindName("audioBorder"))); this.vol = ((System.Windows.Controls.Slider)(this.FindName("vol"))); this.imageIsMutedNo = ((System.Windows.Controls.Image)(this.FindName("imageIsMutedNo"))); this.imageIsMutedYes = ((System.Windows.Controls.Image)(this.FindName("imageIsMutedYes"))); this.volumeValue = ((System.Windows.Controls.TextBlock)(this.FindName("volumeValue"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/EneoAppli;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.reve = ((System.Windows.Media.Animation.Storyboard)(this.FindName("reve"))); this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.din = ((System.Windows.Controls.ProgressBar)(this.FindName("din"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/kelime_oyunu;component/bekleniyor.xaml", System.UriKind.Relative)); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ellipse = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse"))); this.ellipse2 = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse2"))); this.ellipse3 = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse3"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myRectangle = ((System.Windows.Shapes.Rectangle)(target)); return; case 2: this.myStoryboard = ((System.Windows.Media.Animation.Storyboard)(target)); return; } this._contentLoaded = true; }
public Login() { InitializeComponent(); std = (System.Windows.Media.Animation.Storyboard)layoutroot.Resources["std"]; std2 = (System.Windows.Media.Animation.Storyboard)layoutroot2.Resources["std2"]; storyboardCar = (System.Windows.Media.Animation.Storyboard) this.Resources["StoryboardCar"]; std.Completed += (t, r) => this.Close(); std2.Completed += (t, r) => this.Close(); this.layoutroot.Loaded += (sd, ee) => { }; this.Loaded += Login_Loaded; this.Run(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightMediaPlayer;component/MainPage.xaml", System.UriKind.Relative)); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.Storyboard2 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard2"))); this.Storyboard3 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard3"))); this.Storyboard4 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard4"))); this.Storyboard5 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard5"))); this.LayoutRoot = ((System.Windows.Controls.ScrollViewer)(this.FindName("LayoutRoot"))); this.canvas1 = ((System.Windows.Controls.Canvas)(this.FindName("canvas1"))); this.me = ((System.Windows.Controls.MediaElement)(this.FindName("me"))); this.grid0 = ((System.Windows.Controls.Grid)(this.FindName("grid0"))); this.grid1 = ((System.Windows.Controls.Grid)(this.FindName("grid1"))); this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1"))); this.image2 = ((System.Windows.Controls.Image)(this.FindName("image2"))); this.image3 = ((System.Windows.Controls.Image)(this.FindName("image3"))); this.image4 = ((System.Windows.Controls.Image)(this.FindName("image4"))); this.image5 = ((System.Windows.Controls.Image)(this.FindName("image5"))); this.grid2 = ((System.Windows.Controls.Grid)(this.FindName("grid2"))); this.textblock3 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock3"))); this.textblock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock1"))); this.textblock2 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock2"))); this.grid3 = ((System.Windows.Controls.Grid)(this.FindName("grid3"))); this.volume = ((System.Windows.Controls.ProgressBar)(this.FindName("volume"))); this.canvas2 = ((System.Windows.Controls.Canvas)(this.FindName("canvas2"))); this.progressbar = ((System.Windows.Controls.ProgressBar)(this.FindName("progressbar"))); this.vernier = ((System.Windows.Shapes.Rectangle)(this.FindName("vernier"))); this.grid4 = ((System.Windows.Controls.Grid)(this.FindName("grid4"))); this.preview = ((System.Windows.Controls.MediaElement)(this.FindName("preview"))); this.cp = ((Microsoft.Expression.Controls.Callout)(this.FindName("cp"))); this.mute = ((System.Windows.Controls.Grid)(this.FindName("mute"))); this.grid5 = ((System.Windows.Controls.Grid)(this.FindName("grid5"))); this.pause = ((System.Windows.Controls.Grid)(this.FindName("pause"))); this.rectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle"))); this.rectangle1 = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle1"))); this.play = ((Microsoft.Expression.Shapes.RegularPolygon)(this.FindName("play"))); this.stop = ((System.Windows.Shapes.Rectangle)(this.FindName("stop"))); this.replay = ((Microsoft.Expression.Shapes.BlockArrow)(this.FindName("replay"))); this.Esctext = ((System.Windows.Controls.TextBlock)(this.FindName("Esctext"))); this.fullscreen = ((System.Windows.Controls.Grid)(this.FindName("fullscreen"))); this.lineArrow3 = ((Microsoft.Expression.Controls.LineArrow)(this.FindName("lineArrow3"))); this.lineArrow2 = ((Microsoft.Expression.Controls.LineArrow)(this.FindName("lineArrow2"))); this.lineArrow1 = ((Microsoft.Expression.Controls.LineArrow)(this.FindName("lineArrow1"))); this.lineArrow = ((Microsoft.Expression.Controls.LineArrow)(this.FindName("lineArrow"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Hoan_Xich_Huong;component/banner1.xaml", System.UriKind.Relative)); this.storyboard_image = ((System.Windows.Media.Animation.Storyboard)(this.FindName("storyboard_image"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.rotate_image1 = ((System.Windows.Media.TranslateTransform)(this.FindName("rotate_image1"))); this.textblock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock1"))); this.translate1 = ((System.Windows.Media.TranslateTransform)(this.FindName("translate1"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Tally;component/PivotPage1.xaml", System.UriKind.Relative)); this.PageFlickClose = ((System.Windows.Media.Animation.Storyboard)(this.FindName("PageFlickClose"))); this.PageFlickOpen = ((System.Windows.Media.Animation.Storyboard)(this.FindName("PageFlickOpen"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ParkingSpaceListBox = ((System.Windows.Controls.ListBox)(this.FindName("ParkingSpaceListBox"))); this.FavouritesListBox = ((System.Windows.Controls.ListBox)(this.FindName("FavouritesListBox"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Silverlight%20Uyg3%20Animasyon;component/MainPage.xaml", System.UriKind.Relative)); this.Storyboard2 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard2"))); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ellipse = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse"))); this.ellipse2 = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse2"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SLCaroGame;component/Giaodien/Khoidonglai.xaml", System.UriKind.Relative)); this.FadeIn = ((System.Windows.Media.Animation.Storyboard)(this.FindName("FadeIn"))); this.FadeOut = ((System.Windows.Media.Animation.Storyboard)(this.FindName("FadeOut"))); this.image = ((System.Windows.Controls.Image)(this.FindName("image"))); this.MessageTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("MessageTextBlock"))); this.RestartButton = ((System.Windows.Controls.Button)(this.FindName("RestartButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SLVisifireChartsXap;component/Dialog.xaml", System.UriKind.Relative)); this.DialogInStoryBoard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DialogInStoryBoard"))); this.DialogOutStoryBoard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("DialogOutStoryBoard"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.canvas = ((System.Windows.Controls.Canvas)(this.FindName("canvas"))); this.CloseButton = ((System.Windows.Controls.Button)(this.FindName("CloseButton"))); this.Info = ((System.Windows.Controls.TextBlock)(this.FindName("Info"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/VideoPlayer;component/Marker.xaml", System.UriKind.Relative)); this.AnimateIn = ((System.Windows.Media.Animation.Storyboard)(this.FindName("AnimateIn"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.markerGrid = ((System.Windows.Controls.Grid)(this.FindName("markerGrid"))); this.path = ((System.Windows.Shapes.Rectangle)(this.FindName("path"))); this.tbMarker = ((System.Windows.Controls.TextBlock)(this.FindName("tbMarker"))); this.Arrow = ((System.Windows.Shapes.Ellipse)(this.FindName("Arrow"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/WindmillSelector;component/MainPage.xaml", System.UriKind.Relative)); this.Executives = ((WindmillSelector.Executives)(this.FindName("Executives"))); this.RotationStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("RotationStoryboard"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.Path = ((System.Windows.Shapes.Path)(this.FindName("Path"))); this.WindmillListBox = ((Microsoft.Expression.Controls.PathListBox)(this.FindName("WindmillListBox"))); this.DetailsGrid = ((System.Windows.Controls.Grid)(this.FindName("DetailsGrid"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Run21;component/UserControls/Copy%20of%20BonusRoundControl.xaml", System.UriKind.Relative)); this.userControl = ((System.Windows.Controls.UserControl)(this.FindName("userControl"))); this.RideUp = ((System.Windows.Media.Animation.Storyboard)(this.FindName("RideUp"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.descriptionText = ((System.Windows.Controls.TextBlock)(this.FindName("descriptionText"))); this.rewardText = ((System.Windows.Controls.TextBlock)(this.FindName("rewardText"))); this.firstImage = ((System.Windows.Controls.Image)(this.FindName("firstImage"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightChildWindow;component/Page1.xaml", System.UriKind.Relative)); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.LayoutRoot = ((System.Windows.Controls.ScrollViewer)(this.FindName("LayoutRoot"))); this.textblock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textblock1"))); this.tb1 = ((System.Windows.Controls.TextBlock)(this.FindName("tb1"))); this.tb2 = ((System.Windows.Controls.TextBlock)(this.FindName("tb2"))); this.image = ((System.Windows.Controls.Image)(this.FindName("image"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/YueFM%20for%20Windows%20Phone%208;component/AccountItem.xaml", System.UriKind.Relative)); this.SelectedStoryBoard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SelectedStoryBoard"))); this.StackPanelTransformGroup = ((System.Windows.Media.TransformGroup)(this.FindName("StackPanelTransformGroup"))); this.StackPanelScaleTransform = ((System.Windows.Media.ScaleTransform)(this.FindName("StackPanelScaleTransform"))); this.StackPanelTranslateTransform = ((System.Windows.Media.TranslateTransform)(this.FindName("StackPanelTranslateTransform"))); this.LayoutRoot = ((System.Windows.Controls.StackPanel)(this.FindName("LayoutRoot"))); this.textBlock = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/TrollAvi;component/Giris.xaml", System.UriKind.Relative)); this.Storyboard1 = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.image = ((System.Windows.Controls.Image)(this.FindName("image"))); this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1"))); this.image2 = ((System.Windows.Controls.Image)(this.FindName("image2"))); this.girButton = ((System.Windows.Controls.Button)(this.FindName("girButton"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Dota2%20App;component/View/VideoPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.slider_sb = ((System.Windows.Media.Animation.Storyboard)(this.FindName("slider_sb"))); this.image_sb = ((System.Windows.Media.Animation.Storyboard)(this.FindName("image_sb"))); this.video_element = ((System.Windows.Controls.MediaElement)(this.FindName("video_element"))); this.center_image = ((System.Windows.Controls.Image)(this.FindName("center_image"))); this.timelineSlider = ((System.Windows.Controls.Slider)(this.FindName("timelineSlider"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/EasingAnimations;component/MainPage.xaml", System.UriKind.Relative)); this.Animacao = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Animacao"))); this.Funcao = ((System.Windows.Media.Animation.EasingDoubleKeyFrame)(this.FindName("Funcao"))); this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot"))); this.ellipse = ((System.Windows.Shapes.Ellipse)(this.FindName("ellipse"))); this.ModoDaAnimacao = ((System.Windows.Controls.ComboBox)(this.FindName("ModoDaAnimacao"))); this.FuncaoDaAnimacao = ((System.Windows.Controls.ComboBox)(this.FindName("FuncaoDaAnimacao"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/FunWithDrums;component/helparea.xaml", System.UriKind.Relative)); this.help = ((System.Windows.Media.Animation.Storyboard)(this.FindName("help"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.textBlock = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock"))); this.textBlock_Copy = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock_Copy"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/SoundBoard;component/RecordAudio.xaml", System.UriKind.Relative)); this.RotateCircle = ((System.Windows.Media.Animation.Storyboard)(this.FindName("RotateCircle"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.AudioPlayer = ((System.Windows.Controls.MediaElement)(this.FindName("AudioPlayer"))); this.ReelGrid = ((System.Windows.Controls.Grid)(this.FindName("ReelGrid"))); this.PlayAudio = ((System.Windows.Controls.Button)(this.FindName("PlayAudio"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/gMVVM;component/Views/LoginSystem.xaml", System.UriKind.Relative)); this.SwivelToBackStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SwivelToBackStoryboard"))); this.SwivelToFrontStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SwivelToFrontStoryboard"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ProcessingLogin = ((System.Windows.Controls.BusyIndicator)(this.FindName("ProcessingLogin"))); this.SwivelPanelBack = ((System.Windows.Controls.Border)(this.FindName("SwivelPanelBack"))); this.SwivelPanelFront = ((System.Windows.Controls.Border)(this.FindName("SwivelPanelFront"))); }