Windows vista MenuItem
-
Hi, There's a strange behaviour when using WPF in windows vista: i want my menu items to be White on the MainMenu of my application, while the children remain regular color. So i set the Foreground property to white (on the top level) in vista the child menu items inherit this foreground (!) I found a reference to it here: http://journals.tuxreports.com/lch/archives/004031.html[^] Does any have a solution for that? Note: when setting all the other item to "Black", i use the feature of opposite color when selecetd, and i don't want to implement it by myself Thanks, Yanai
-
Hi, There's a strange behaviour when using WPF in windows vista: i want my menu items to be White on the MainMenu of my application, while the children remain regular color. So i set the Foreground property to white (on the top level) in vista the child menu items inherit this foreground (!) I found a reference to it here: http://journals.tuxreports.com/lch/archives/004031.html[^] Does any have a solution for that? Note: when setting all the other item to "Black", i use the feature of opposite color when selecetd, and i don't want to implement it by myself Thanks, Yanai
I think it's a feature. WPF has theming capabilities and use different default themes on different OSes. To play with themes, have a look there[^]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
I think it's a feature. WPF has theming capabilities and use different default themes on different OSes. To play with themes, have a look there[^]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
Hi and thanks But i don't understand how is it a feature? and how is the themes gonna help me. as remembered, all i want to do is color the foreground color of my menu items in white, while the rest will stay default. and for it to work in XP\Vista\Windows 7 And i can't does anybody have a solution to that? Thanks again
-
Hi and thanks But i don't understand how is it a feature? and how is the themes gonna help me. as remembered, all i want to do is color the foreground color of my menu items in white, while the rest will stay default. and for it to work in XP\Vista\Windows 7 And i can't does anybody have a solution to that? Thanks again
It's the way the menu behave! How is it done and different depending on the platform in WPF? Well, WPF ship with a few build-in theme. Aero is the vista look, Luna is the XP look (if I'm right). Then the theming capabilities of WPF choose the appropriate default look for the OS. If you want your menu to look always the same you got to either of: 1. fix the theme so that it doesn't change with the OS 2. or simply set up a MenuItem style in your App.config. Fix the theme will ensure that your app looks the same whatever the UI and will get you a deeper understanding of what's going on. (As writing a them is huge undertaking, better re-us an existing one). Write a custom MenuItem style is a less general solution (it will only make the menu similar, but the you'll got the same problem for scrollbar, button, combobox, etc.....)
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
It's the way the menu behave! How is it done and different depending on the platform in WPF? Well, WPF ship with a few build-in theme. Aero is the vista look, Luna is the XP look (if I'm right). Then the theming capabilities of WPF choose the appropriate default look for the OS. If you want your menu to look always the same you got to either of: 1. fix the theme so that it doesn't change with the OS 2. or simply set up a MenuItem style in your App.config. Fix the theme will ensure that your app looks the same whatever the UI and will get you a deeper understanding of what's going on. (As writing a them is huge undertaking, better re-us an existing one). Write a custom MenuItem style is a less general solution (it will only make the menu similar, but the you'll got the same problem for scrollbar, button, combobox, etc.....)
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.