From 209797e5e1375c2c20a335d3bc2cf66810d9b129 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 7 Jul 2022 23:32:23 +0200 Subject: [PATCH] Ported HamburgerMenu to ControlTheme. --- .../HamburgerMenu/HamburgerMenu.xaml | 89 +++++++++++-------- 1 file changed, 54 insertions(+), 35 deletions(-) diff --git a/samples/SampleControls/HamburgerMenu/HamburgerMenu.xaml b/samples/SampleControls/HamburgerMenu/HamburgerMenu.xaml index 5f8bfe4fb5..73f8e480f5 100644 --- a/samples/SampleControls/HamburgerMenu/HamburgerMenu.xaml +++ b/samples/SampleControls/HamburgerMenu/HamburgerMenu.xaml @@ -62,9 +62,28 @@ TextElement.FontWeight="{TemplateBinding FontWeight}" /> + + + + + + + + + + + + + + + + Background="{DynamicResource TabItemHeaderSelectedPipeFill}" + IsVisible="False" + CornerRadius="{DynamicResource ControlCornerRadius}"/> + + + + + + + + - + + + @@ -109,7 +157,8 @@ CompactPaneLength="{StaticResource PaneCompactWidth}" DisplayMode="Inline" IsPaneOpen="True" - OpenPaneLength="{StaticResource PaneExpandWidth}"> + OpenPaneLength="{StaticResource PaneExpandWidth}" + PaneBackground="Transparent"> @@ -123,11 +172,6 @@ ItemTemplate="{TemplateBinding ItemTemplate}" Items="{TemplateBinding Items}" ItemsPanel="{TemplateBinding ItemsPanel}"> - - - @@ -187,7 +232,7 @@ HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Center" - Classes="NavigationButton" + Theme="{StaticResource NavigationButton}" CornerRadius="4" IsChecked="{Binding #PART_NavigationPane.IsPaneOpen, Mode=TwoWay}"> @@ -196,18 +241,12 @@ - - @@ -221,26 +260,6 @@ - -