protected override void OnUnloaded()
        {
            base.OnUnloaded();

            if (IsDesignTime)
            {
                return;
            }

            this.controller.IsLoaded = false;

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

            if (IsDesignTime)
            {
                return;
            }

            var containerHotbar =
                (IClientItemsContainer)Api.Client.Characters.CurrentPlayerCharacter.SharedGetPlayerContainerHotbar();

            this.controller.SetContainer(containerHotbar);
            this.controller.IsLoaded = true;

            this.DataContext = this.viewModel = new ViewModelHUDItemsHotbarControl();
        }