feat: simplify MainView.

(cherry picked from commit faee95f12f)
This commit is contained in:
Zhang Dian
2024-11-24 20:52:39 +08:00
parent 237fe72475
commit eb1748aa2a
7 changed files with 159 additions and 92 deletions

View File

@@ -112,23 +112,12 @@
<ListBox
Grid.Row="1"
ItemsSource="{Binding Songs}" />
<ToggleSwitch
<ToggleButton
Grid.Row="2"
Theme="{DynamicResource ButtonToggleSwitch}"
Theme="{DynamicResource SplitViewToggleButton}"
HorizontalAlignment="Left"
IsChecked="{Binding #SplitView.IsPaneOpen}">
<ToggleSwitch.OnContent>
<PathIcon
Width="16"
Height="16"
Data="{StaticResource NavigationMenuExpandIconGlyph}" />
</ToggleSwitch.OnContent>
<ToggleSwitch.OffContent>
<PathIcon
Width="16"
Height="16"
Data="{StaticResource NavigationMenuExpandIconGlyph}" />
</ToggleSwitch.OffContent>
</ToggleSwitch>
</ToggleButton>
</Grid>
</SplitView.Pane>