lepoco / lepoco/wpfui

The taskbar remains visiable when entering fullscreen mode in windows 7

Open
#144 0 comments 0 reactions 1 assignee View on GitHub

@pomianowski is already working on this.

Since Apr 22, 2022.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I changed window style and topmost property for fullscreen senario,binding it to StateChanged event.

private void MainWindow_StateChanged(object sender, EventArgs e)
        {
            if (this.WindowState == WindowState.Maximized)
            {
                this.Visibility = Visibility.Collapsed;
                this.Topmost = true;
                this.WindowStyle = WindowStyle.None;
                this.ResizeMode = ResizeMode.NoResize;
                this.Visibility = Visibility.Visible;
            }
            else
            {
                this.Topmost = false;
                this.WindowStyle = WindowStyle.SingleBorderWindow;
                this.ResizeMode = ResizeMode.CanResize;
            }
        }

It works well in windows 10, windows 11 or windows 8.1 with WPF-UI library, while in windows 7(sp1) ,the taskbar cannot be hidden.I tried to remove WPF-UI and it behaves as expected.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.