Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Changing the Toolbar Style
posted

Hi guys,

I have a question thats probably pretty easy to anwer but I couldn't seem to find the answer anywhere. 

We're switching to the Office2010 stye now. Since we allow every user to select the style he want's to use (e.g. office 2007) the style is set via: 

Infragistics.Win.AppStyling.StyleManager.Load() when the apllication starts

but this doesn't seem to include the ribbon (toolbar). I tried to do it manually but I'm not happy with the solution. Shouldn't loading the style change the toolbar style too?

Another little issue is the Image used for the "File" Menu Item. The image is displayed in a very strange style when using the office 2010 style but since the menu is generated with an xml file and I still need the image for the office 2007 style I can't remove it. Is there an easy way to hide this image when I use the 2010 style?

And one last question: Correct me if I'm wrong but I think it's default behaviour if you use the & key in the name of a menu item the char after the & is underlined and used for the ALT+Key functionality. When i use the toolbar style office 2010 this doesn't work in win 7. On my 7 machine the & keys are displayed and the ALT+key doesn't work. In win xp this works just fine which is kinda strange.

Thanks in advance

Parents
No Data
Reply
  • 4133
    Offline posted

    I am in the same boat as you.  I have had to do the following whenever my user selects an Office 2010 style:

    1. Set the UltraToolbarsManager.Ribbon.ApplicationMenuButtonImage to NOTHING.  Otherwise, the image is distorted and appears in the File menu tab area.  I have to reset it when they switch back to a 2007 style.

    2. Change the image I use for the app's icon.  I normally use an image that is 32X32 and the app automatically scales it for me, but that doesn't seem to work under the Office 2010 style.  I have to switch to something that is 16X16, but then the icon looks bad down on my taskbar.  I guess I have to just live with that one for now.

    Hope this helps

    Rich

     

Children
No Data