Open bianwenbo opened 2 years ago
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.
Create a new WPF project, here is some sample code:
<Grid> <Button x:Name="BtnSubWindow" Content="Open SubWindow" Click="BtnSubWindow_Click"/> <Grid>
public MainWindow() { InitializeComponent(); }
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>
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
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(); }