private void ShrinkForegroundWindow(Rectangle keyboardPosition)
        {
            var taskbarSize     = TaskbarHelper.GetTaskbarSize();
            var taskbarPosition = TaskbarHelper.GetTaskbarPosition();
            var diff            = 0;

            if (taskbarPosition == TaskbarHelper.TaskbarPosition.Bottom)
            {
                diff = -taskbarSize.Height;
            }

            lastWindowState = WindowManipulationHelper.ChangeForegroundWindowToWindowedFullScreen(
                keyboardPosition.Height + diff);
        }
        private async void ShowDock(Rectangle keyboardPosition)
        {
            Debug.WriteLine("ShowDock");
            await Task.Delay(250);

            this.Edge = AppBarEdges.Bottom;

            var taskbarSize     = TaskbarHelper.GetTaskbarSize();
            var taskbarPosition = TaskbarHelper.GetTaskbarPosition();

            if (taskbarPosition == TaskbarHelper.TaskbarPosition.Bottom)
            {
                this.Height = keyboardPosition.Height - taskbarSize.Height;
            }
            else
            {
                this.Height = keyboardPosition.Height;
            }

            this.Width = 1;
        }