Hi IG team,
I'm trying to put 16-bit image into ribbon menu round button. But image is being enlarged. How do I keep original image size ?
<ribbon:XamRibbon.ApplicationMenu>
<ribbon:ApplicationMenu Image="/Controls.Biz.45;component/Images/price-watch-icon_16.png" />
</ribbon:XamRibbon.ApplicationMenu>
Regards,
Sergey
Hello Sergey,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
The solution you suggested works, case can be closed.
(although I'd prefer if image specified in xaml retains size without code behind)
Hi Stefan,
I have another question about the ribbon - how to control the empty box which pops up when I click on round button ?
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I've got same issue with resized image. Is it possible to workaround it in XAML not in code-behind?
Hello Anton,
Since the enlarging od the image is controlled by code, currently you are not able to change the Width and Height in XAML. You can suggest a product idea for adding ImageWidth and ImageHeight Properties in the ApplicationMenu item. You can do this here:
http://ideas.infragistics.com/
The Horizontal and Vertical Alignments of the Image in the Template are set to Center, but the thing you can do is copy the default Style and set the Image's Stretch Property to None. This way it will remain 16x16 pixels, as you want. I created a sample project with this approach.
Stefan, I haven't seen ApplicationMenu template, but my feeling is that Image inside that button has Vertical and Horizontal Alignments set to "Stretch" and Stretch property set to Uniform or something, which leads images to be stretched.