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,
Thank you for your post. I have been looking into it and I can suggest you handle the ApplicationMenu Loaded event and in the handler you can put the following code:
Image img = Utilities.GetDescendantFromType(sender as DependencyObject, typeof(Image), true) as Image; img.Height = 16; img.Width = 16;
In order to set the Height and Width of the Image to the desired pixels. Please let me know if you need further clarifications on this matter.
Looking forward for your reply.