optimize<Adorner>: move adorner management to Controls.Window

This commit is contained in:
leo 2021-08-06 17:19:04 +08:00
parent 84a0e9f463
commit 580ff565d8
4 changed files with 60 additions and 49 deletions

View file

@ -15,7 +15,7 @@
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}"
Closing="OnClosing">
<controls:DragDropAdornerLayer>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="28"/>
<RowDefinition Height="*"/>
@ -61,5 +61,5 @@
Grid.Row="1"
HorizontalAlignment="Right" VerticalAlignment="Top"
Width="330" Height="Auto"/>
</controls:DragDropAdornerLayer>
</Grid>
</controls:Window>