protected override async void OnNavigatedTo(NavigationEventArgs e) { _rootVisual = GetVisual(PictureHost); _compositor = _rootVisual.Compositor; _imageFactory = CompositionImageFactory.CreateCompositionImageFactory(_compositor); _rootVisual.Clip = _compositor.CreateInsetClip(0, 0, 0, 0); // Begin the TransitionController to load images and kick off animations. try { _transitionController = new TransitionController(); await _transitionController.Create(_rootVisual, _imageFactory); var actualSize = new Vector2((float)PictureHost.ActualWidth, (float)PictureHost.ActualHeight); _transitionController.UpdateWindowSize(actualSize); NearSlideCheckBox_Click(this, null); FarSlideCheckBox_Click(this, null); FlashlightCheckBox_Click(this, null); ZoomCheckBox_Click(this, null); StackCheckBox_Click(this, null); _transitionController.NextTransition(); } catch { } }