public void WindowSecond() { // StopCamera(); thirdWindow.Show(); HidenWindow(); }
void InitializeControls() { var firstWindow = new FirstWindow(this); firstWindow.Show(); var secondWindow = new SecondWindow(this); secondWindow.Show(); var thirdWindow = new ThirdWindow(this); thirdWindow.Show(); var startEffectOverlay = new Overlay(this) { Opacity = 1 }; startEffectOverlay.Show(); var startEffectOverlay_opacityAnimation = new FloatLerpAnimation { Action = (current) => { startEffectOverlay.Opacity = current; }, From = 1, To = 0, Duration = TimeSpan.FromSeconds(0.5d), Enabled = true }; startEffectOverlay_opacityAnimation.Completed += (s, e) => { startEffectOverlay.Close(); thirdWindow.Activate(); }; startEffectOverlay.Animations.Add(startEffectOverlay_opacityAnimation); }