feat: add dismiss Button.

This commit is contained in:
Zhang Dian
2024-11-24 22:46:36 +08:00
parent 7ac603b18e
commit ed6b8c7469
4 changed files with 44 additions and 37 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>