protected override void DisposeMenu() { base.DisposeMenu(); this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }
protected override void InitMenu() { var controlSkeletonView = this.GetByName <Rectangle>("SkeletonViewControl"); this.DataContext = this.viewModel = new ViewModelWindowInventory(controlSkeletonView); }