Example #1
0
        protected override void OnLoaded()
        {
            this.storyboardHide.Completed += this.StoryboardHideCompletedHandler;
            this.storyboardShow.Completed += this.StoryboardShowCompletedHandler;

            this.DataContext = this.viewModel = new ViewModelLoadingSplashScreen();
            this.Refresh();
        }
Example #2
0
        protected override void OnUnloaded()
        {
            this.storyboardHide.Completed -= this.StoryboardHideCompletedHandler;
            this.storyboardShow.Completed -= this.StoryboardShowCompletedHandler;

            this.DataContext = null;
            this.viewModel.Dispose();
            this.viewModel = null;
        }