style<Window>: show progress bar in taskbar while popup is running

This commit is contained in:
leo 2023-10-10 15:53:34 +08:00
parent 951a38d445
commit 905531f2db
4 changed files with 19 additions and 1 deletions

View file

@ -15,7 +15,12 @@
Width="{Binding Source={x:Static models:Preference.Instance}, Path=Window.Width, Mode=TwoWay}"
Height="{Binding Source={x:Static models:Preference.Instance}, Path=Window.Height, Mode=TwoWay}"
WindowState="{Binding Source={x:Static models:Preference.Instance}, Path=Window.State, Mode=TwoWay}"
Closing="OnClosing">
Closing="OnClosing">
<Window.TaskbarItemInfo>
<TaskbarItemInfo ProgressState="None"/>
</Window.TaskbarItemInfo>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{Binding ElementName=me, Path=WindowState, Converter={StaticResource WindowStateToTitleBarHeight}}"/>