Repository navigation
Replies: 6 comments 5 replies
|
I don't think so unfortunately. :( |
0 replies
|
Hi @Pyrdacor I may have a solution for you. The issue is, that the Background has a local value set which cannot be overriden by any Style. This may change in the future, but for now this is not possible without recreating the This is the line which is bugging you: The good news is, that it is a <!-- Can be any Resources section -->
<Window.Resources>
<SolidColorBrush x:Key="MenuFlyoutPresenterBackground">Red</SolidColorBrush>
</Window.Resources>Happy coding /cc @pagner |
4 replies
|
Thanks. Will have a look when I am on to that project again. ;) |
0 replies
|
@Pyrdacor I was able to achive what you were looking for with <Window.Styles>
<Style Selector="MenuItem:open /template/ Popup#PART_Popup > Border">
<Setter Property="BorderBrush" Value="red" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="0" />
<Setter Property="Background" Value="blue"></Setter>
</Style>
</Window.Styles>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I managed to customize my menu like this:
But as you can see there is still this white border around the popup and the separator has white background as well. How can I color those areas?
This is my styling:
The last 4 styles were my attempt to change the areas. But none of them worked.
The menu looks like this:
FYI:
views:Labelis just a TextBlock with a shadow (transformed second TextBlock). AndMenuTextConverterjust removes the underscores for display.All reactions