Hello,
I have Infragistics icons in all formats like ico, xaml and png and want to put them in WPF XAMRibbon button tool and other tools in ribbon. I have embedded png files but its blur on ribbon and looks ugly. I want to use XAML format for icons and I assume it works well. All your XAML based icons have root element Canvas while ButtonTool.LargeImage wants DrawingImage object. How can I solve this problem. Please help.
Thanks,
A. Latif
Hello Allana,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but it seems like that I am missing something in your scenario, so if this is still an issue for you, could you please send an isolated sample project, where the issue is reproduced, so I can investigate it further for you.
Feel free to write me if you have further questions.
Hi Stefan,
The problem is still there. I am trying to explain it through visuals. I have set the MoneyBag (32bit) PNG icon from your Business & Finance Pack on a ribbon button and it looks like the below (ButtonOnRibbon.png):
My problem is that this icon looks very good in XAML format but I can't able to set XAML-format icon on ribbon button. It looks like that I can only set raster image (png, jpg etc. format) icons to a ribbon button. You can compare the quality of MoneyBag icon from the picture (ButtonOnRibbon.png). This icon is looks very good in XAML-Format. I can't able to load multiple files through your interface so you can refer XAML-based MoneyBag icon from Infragistics Business & Finanace icon-Set.
My question is there any solution to set XAML-format icon to a ribbon button?
Many Thanks,
A. Latif Allana
You can only set the LargeImage and SmallImage Properties of the ButtonTool class, which are both of ImageSource type and cannot accept Xaml code.
good for us