Hi,
how do I set the application menu icon in the scenic ribbon to look like the one in Wordpad or Paint in Windows 7? When I try to create an image which looks like the one in Win7 it is stretched to a smaller size.
Can I set the Stretch property for the application Menu Icon to "None"?
My Image has a size of 28x13.
Thanks
Jus
Hello Jus,
You can set the icon of the window at the Icon property of the Window or the XamRibbonWindow if you are using it. If you want, you can also set the ApplicationMenu's icon with the AppcalicationMenu.Image property.
Edit : If you want to modify the properties of the actual Image control that represents the Icon of the window, you can use the default styles for the XamRibbon that we ship in the DefaultStyles directory in the Infragistics folder.
Hello Alex,
I know how to set the image, however I am not able to look the icon the same as the one in Windows 7 Scenic Ribbons, because the icon is scaled down.
Do I really have to change the default Style?
Jus,
I have attached a sample project with the customized styles (in the App.xaml) that adjust the image Stretch and Size properties.
Hi Alex,
The sample app looks great! However, when I tried copying the resource dictionaries and using the style in my application, it didn't work... Any ideas?
Also, I'm after a different color scheme (i.e. Office2k7Silver). Is there any easy way of modifying the Scenic theme to support it?
Thanks in advance,Dmitry
Hello Dmitry,
Did you reference the resource dictionaries correctly in your application. Please note that they have to be merged so that the styles can apply. Just adding them into your solution will not work. If you still need assistance with this, please attach a project that does reproduce the issue.
Regarding the brushes, you could modify the Scenic brushes provided in the ..._Brushes.xaml file. This way, you would change the color scheme instantly.