Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.51k stars 450 forks source link

Child window containing TabItem causes application UI to become unresponsive after system unlock #469

Open bianwenbo opened 2 years ago

bianwenbo commented 2 years ago

Problem Description

The program's child windows use a tabcontrol containing a tabitem.

When the system is locked and then unlocked, the UI of the child window is no longer responsive.

Temporary solutions

  1. Clicking the main window restores the child window response. Or...
  2. Use raw WPF UI instead of ModernWpf

How to reproduce

Create a new WPF project, here is some sample code:

private void BtnSubWindow_Click(object sender, RoutedEventArgs e) { SubWindow subWindow = new(); subWindow.Show(); }

- SubWindow.xmal
```xml
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
        <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <TextBox/>
    <TabControl Grid.Column="1">
        <TabItem/>
    </TabControl>
</Grid>