dotnet / dotnet/wpf

Window not Restore from taskbar

Open
#4,124 2 comments 2 reactions 0 assignees View on GitHub
.NET Framework Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version:3.1
* Windows version: Windows10
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions [here](https://docs.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019).
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/master/README.md#reporting-security-issues-and-security-bugs).



**Problem description:**
My App have three window: MainWindow WindowA WindowB, WindowB.Owner = WindowA, WindowA.Owner = MainWindow, when I run this app in Adminstrator mode, First I click on the minimize button to minimize the MainWindow(WindowA and WindowB also minimize ), then I click icon in taskbar, MainWindow cannot be restored。if run this app in Normal mode (not Administrator), everything is Ok.

**Actual behavior:** Clicking on the taskbar icon window does not respond

**Expected behavior:** Window display restored

**Minimal repro:**
```
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Loaded += MainWindow_Loaded;
}

private WindowA _windowA = null;
private WindowB _windowB = null;
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
_windowA = new WindowA();
_windowA.Owner = this;
_windowA.Show();
_windowB = new WindowB();
_windowB.Owner = _windowA;
_windowB.Show();
}
}
```

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.