Flyout Style Fix

This commit is contained in:
rmbgame
2021-06-23 14:29:38 +08:00
parent 83f5c370fe
commit 3c29b8efdf
2 changed files with 6 additions and 5 deletions
@@ -76,12 +76,12 @@
Width="250"
HorizontalOffset="-205"
IsLightDismissEnabled="True">
<Border Background="{DynamicResource ThemeBrushKey}"
<Border Background="{DynamicResource MenuFlyoutPresenterBackground}"
HorizontalAlignment="Stretch"
CornerRadius="{DynamicResource OverlayCornerRadius}">
<StackPanel>
<Panel x:Name="UserMenu" Width="300" Margin="0 20">
<StackPanel Spacing="10">
<StackPanel>
<Image Source="{ReflectionBinding Path=AvaterPath, Source={x:Static service:UserService.Current},Mode=OneWay,Converter={StaticResource BitmapAssetValueConverter},ConverterParameter=100}"
Stretch="Uniform"
Height="100" Width="100"
@@ -92,13 +92,14 @@
</Image>
<TextBlock
Text="{ReflectionBinding Path=User.NickName,Mode=OneWay,Source={x:Static service:UserService.Current}}"
Margin="0 10 0 0"
FontSize="14"
HorizontalAlignment="Center"
Foreground="{DynamicResource HighlightForegroundBrushKey}"></TextBlock>
</StackPanel>
</Panel>
<ListBox SelectionMode="Single" Classes="metro"
Background="{DynamicResource ThemeBrushKey}">
<Separator Classes="Separator"></Separator>
<ListBox SelectionMode="Single" Classes="metro" Background="Transparent">
<ListBox.Styles>
<Style Selector="Button">
<Setter Property="Width" Value="{Binding #UserMenu.Width}"></Setter>
@@ -136,7 +136,7 @@
PlacementTarget="typebutton"
HorizontalOffset="-1.5"
IsLightDismissEnabled="True">
<Border Background="{DynamicResource BackgroundBrushKey}"
<Border Background="{DynamicResource MenuFlyoutPresenterBackground}"
Classes="dialog"
Width="{Binding $parent.Width}" Height="200">
<ScrollViewer Padding="10 5">