MahApps / MahApps/MahApps.Metro

Automatically hidden taskbar doesn't show up over maximized MetroWindow

Open
#4,070 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
C#
Stars
9.8k
Forks
2.4k
Avg merge
1h 2m
Merged PRs (30d)
56

Description

## Describe the bug

When the taskbar is set to hide automatically, it doesn't show up over a maximized MetroWindow. Also, still when it's maximized , there's a little gap at the bottom (or wherever the taskbar is positionned) of the MetroWindow that displays the program behind (or the Wallpaper if there's nothing behind). If you click on that gap it obviously focuses the program that was behind.

## Steps to reproduce

1. Set your taskbar to hide automatically (Right click on taskbar => taskbar settings => Automatically hide taskbar in desktop mode).
2. Run the sample application in [MahApps bug demo.zip](https://github.com/MahApps/MahApps.Metro/files/6150962/MahApps.bug.demo.zip) (Unfortunately I can't post a full github repository).

3. Maximize the MetroWindow if it isn't maximized already.
4. Move the cursor to where your taskbar is.
5. Taskbar doesn't show up. (And you can see the little gap I was talking about).
6. Click on the gap. The application behind gets focus.

## Expected behavior

The taskbar shows up when the cursor is over it. The little gap at the bottom (or wherever the taskbar is positionned) is filled with the MetroWindow's content.

## Environment

```
MahApps.Metro version: v2.4.3
Windows build number: Win10 1803 [Version 17134.2087]
Visual Studio: Professional 2019 16.6.4
Target Framework: .Net Framework 4.6.1
```

## Screenshots

![MahApps bug](https://user-images.githubusercontent.com/30848600/111353348-811f0c00-8685-11eb-84cf-30a07b151ddc.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked MahApps bug demo.zip on Windows with the taskbar set to auto-hide, then maximize the MetroWindow and reproduce the missing taskbar and bottom gap. Investigate the maximized-window behavior that affects taskbar interaction. Done means the taskbar appears when hovered and the MetroWindow fills the taskbar area without exposing or focusing the application behind it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.