HI Everyone! I am very new to WPF. I am creating a top menu for my application. In the 'File' menu, I have only one option at this point. 'Exit". I have the background color as black and the forecolor as white, which is fine. However, when i hover of 'Exit' When running the app, it becomes transparent and the Exit is no longer readable. What is the best way to make sure Exit is readable when I hover the mouse over it at runtime?
Perhaps you can try to use Trigger to change MenuItem background or foreground to make it readable when MenuItem.IsHighlighted is true.
Check out the MenuItem ControlTemplate Example at http://msdn.microsoft.com/en-us/library/ms747082(VS.85).aspx