protected override void OnUnloaded() { Instance = null; this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }
protected override void OnLoaded() { var statusEffects = Api.Client.Characters.CurrentPlayerCharacter .GetPrivateState <BaseCharacterPrivateState>() .StatusEffects; this.DataContext = this.viewModel = new ViewModelHUDStatusEffectsBar(statusEffects); Instance = this; }
protected override void OnLoaded() { this.DataContext = this.viewModel = new ViewModelHUDStatusEffectsBar(); Instance = this; }