protected override void OnUnloaded() { this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }
protected override void OnLoaded() { this.DataContext = this.viewModel = new ViewModelItemTooltipWeaponStats(this.item, this.protoItem); }