We have dev in our service, a link between wpf xaml with powershell scripts. Actually, we really not have any hard difficults for every simple controls like textbox, richtextbox, button, etc...
But right now, we want trying to make a menu like notepad for example(file, edit, etc...). The objective is to have a menu style like that : Black Menu
I have read many threads here and in other website about styling but nothing working(many code are used with the C# so it's complicated to modify it).
If I understand right, we need to create a custom style for our menu. For example, here my menu :
<Window x:Class="Test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:eo="http://schemas.essentialobjects.com/wpf/"
Title="MainWindow" Height="250" Width="350">
<StackPanel>
<Menu>
<MenuItem Header="_File">
<MenuItem Header="_New" />
<MenuItem Header="_Save" />
<MenuItem Header="_Quit" />
</MenuItem>
<MenuItem Header="_Edit">
<MenuItem Header="_Copy" />
<MenuItem Header="_Cut" />
<MenuItem Header="_Paste" />
</MenuItem>
</Menu>
</StackPanel>
</Window>
Where I need to put the custom style and how? (Background black, text white, hover light blue, submenu background black without white border)
Thanks for your helps and sorry if I'm not clear in my request. Difficult to explain.
Try something like this:
I'm sure it can be optimized, but this can give you the way to go.
regards,