dotnet / dotnet/wpf

WPF - Provide a way for wpf applications to easily hide their windows from ALT+Tab

Open
#3,623 8 comments 11 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Currently, there is ShowInTaskbar=false you can do to hide your window from the taskbar, but in order to hide a window from ALT+Tab, you must do that and change the WindowStyle=ToolWindow. I don't like ToolWindow generally, and it does not maximize properly which makes it undesirable for end-users.

There should be a ShowInTaskView=false or something to that effect for me to control that individually, or at least publish something that shows what the proper user32.dll call is so we can do it ourselves.

As a bonus kicker, if you examine Visual Studio, the Solution Explorer and other things that are clearly Tool Windows (called as such everywhere in the XAML) does NOT use WindowStyle=ToolWindow and still magically doesn't show up in ALT+Tab, so clearly the VS team noticed this problem, decided ToolWindow was unacceptable, but then had the inside knowledge to go a different route to hide their tool windows from ALT+Tab without changing the WindowStyle.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.