feature<Window>: remember window state

This commit is contained in:
leo 2022-01-04 14:52:13 +08:00
parent 9f58e0c715
commit f04c01b878
3 changed files with 12 additions and 3 deletions

View file

@ -14,6 +14,7 @@
Title="{DynamicResource Text.About.Title}"
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">
<Grid>
<Grid.RowDefinitions>