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?
Thanks for the input.
I went into resignation mode and tried to use a minimalist version of the icon, something like this
or because this does not fit. However, I faced another issue, if you host the ribbon in a XamRibbonWindow, the ribbon theme will become the general theme and will try to apply the same to its children controls. The final result is that children ends not finding any theme to apply, because as it seems Scenic is just targeting the ribbon.
Regards,
Pablo
Wow, I didn't imagine Infragistics controls could cause someone's resignation ;)
The last bit sounds strange though. Did you try explicitly setting the Theme of the XamRibbonWindow?
Hi dshecht1,
Particularly I cannot go that way [assigning the theme to XamRibbonWindow]. In an ideal environment I should just merge infragistics themes in a resource dictionary or use the ThemeManager class to avoid further complications. I may need to dinamically load themes on the future.
Functionalities that should come out-of-the-box, but not provided tends to become the most difficult problems to solve. For now, I am just sticking to the current fully supported themes (well, half supported, no listbox or listview and treeview around) until Infragistics folks decide to release those new office 2010 themes.
Cheers,
Hi guys, sorry for digging up an old thread but it looks like this is relevant to a problem I'm having. I am trying to port our existing WinForms app (with Infragistics WinForms controls) to WPF, using the latest version of Infragistics for WPF.
The theme is currently Office2k7 Black.
I am trying to get the main image/button over the ApplicationMenu to look right. We have a circular icon, which should exactly match the size of the empty circle provided by the theme. In the WinForms version, it looks like the circle was 42x42. In the new WPF version, the circle now appears to be 37x37. So that's one issue - but I'm not too bothered about the change in size - hopefully it's a minor detail and no one would even notice.
But what does seem to be a problem is, I can't seem to get an icon to place itself exactly over the circle anymore. I suppose the size image it is expecting is 32x32? But it seems to take that 32x32 image and scale it down so that the circle in my image is actually smaller than the actual 37x37 image I am trying to put it over in the ribbon - so even if I leave no empty space outside the edge of my circle in my png file, it still doesn't come close to covering the edges of the 37x37 circle in the ribbon. In fact my png file is actually 48x48 but that doesn't seem to matter - it still seems to be shrunk down to 32x32.
Here's a screenshot of the problem. Ignore the fact that the icon looks funny - I've had to make it solid green because it has proprietary info..
Here's the old WinForms version for comparison:
It looks like the sample posted above may have what I need to fix the problem. But It's quite a bit of template code so I'm lost - can anyone point me at the part I need to focus on to fix this problem?
Also a related question - in the WinForms app, the icon behaves as a button, and has a hover and click-down image with a bit of glow. Is there an easy way to do this, or is this also something I need to customize in the template..?
Thanks!
Hello,
Thank you for your post. I have been looking into it and modified the sample Alex sent, so now it works as you want. Basically I copied the default Style for the ApplicationMenuButton and hide the elements that are behind the Image. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.