protected override void OnUnloaded() { this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }