protected override void OnLoaded() { this.storyboardHide.Completed += this.StoryboardHideCompletedHandler; this.storyboardShow.Completed += this.StoryboardShowCompletedHandler; this.DataContext = this.viewModel = new ViewModelLoadingSplashScreen(); this.Refresh(); }
protected override void OnUnloaded() { this.storyboardHide.Completed -= this.StoryboardHideCompletedHandler; this.storyboardShow.Completed -= this.StoryboardShowCompletedHandler; this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }