Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Windows vista MenuItem

Windows vista MenuItem

Scheduled Pinned Locked Moved WPF
csharphtmlwpfcomquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yanairon
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • Y yanairon

      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

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      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.

      Y 1 Reply Last reply
      0
      • S Super Lloyd

        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.

        Y Offline
        Y Offline
        yanairon
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • Y yanairon

          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

          S Offline
          S Offline
          Super Lloyd
          wrote on last edited by
          #4

          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.

          Y 1 Reply Last reply
          0
          • S Super Lloyd

            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.

            Y Offline
            Y Offline
            yanairon
            wrote on last edited by
            #5

            Ok now i see what you mean I've set my project to work with Luna (XP) only (in the App Resource) Unfortunatley, it doesn't solve the problem...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups