예제 #1
0
        protected override void OnUnloaded()
        {
            this.DataContext = null;
            this.viewModel.Dispose();
            this.viewModel = null;

            this.IsVisibleChanged -= IsVisibleChangedHandler;
        }
예제 #2
0
 protected override void OnLoaded()
 {
     this.DataContext       = this.viewModel = new ViewModelSkinEarningProgressControl();
     this.IsVisibleChanged += IsVisibleChangedHandler;
 }