Hi infragistics i have just noticed the the ButtonTool has a major Bug! when you set the smallImage and the LargeImage property they dont show in some cases! my Xaml code below when i run it i only see images for the Maximum property i set for "ImageOnly"
Xaml code:
<ig:XamRibbon> <ig:XamRibbon.Tabs> <ig:XamRibbonTabItem Header="Tab" Visibility="Visible"> <!-- Add Editing XamRibbonGroup--> <ig:XamRibbonGroup Caption="Test" Id="EditingGroup">
<!-- The Line Below works! it shows the image only -->
<ig:ButtonTool Caption="button1" MaximumSize="ImageOnly" SmallImage="Assets/Images/NewAdd16.png" LargeImage="Assets/Images/NewAdd32.png"/>
<!-- The Line Below Shows text Only the image is not shown the Text is shown and button is normal size But the Image is not displayed and it should be ! --> <ig:ButtonTool Caption="button2" MaximumSize="ImageAndTextNormal" SmallImage="Assets/Images/NewAdd16.png" LargeImage="Assets/Images/NewAdd32.png"/>
<!-- The Line Below Shows text Only the image is not shown the Text is shown and button is Large size But the Image is not displayed and it should be ! --> <ig:ButtonTool Caption="button3" MaximumSize="ImageAndTextLarge" SmallImage="Assets/Images/NewAdd16.png" LargeImage="Assets/Images/NewAdd32.png"/>
</ig:XamRibbonGroup> <!-- End Editing XamRibbonGroup--> </ig:XamRibbonTabItem> </ig:XamRibbon.Tabs> <ig:XamRibbon>
how do i get the images to show on the settings of "ImageAndTextNormal" and "ImageAndtextLarge"
I also tried this from code behind exactly how it is done in your sample :
http://samples.infragistics.com/sllob/ribbon/sl/#/add-tabs-and-groups
It works in your sample but does not in my code why ??? this is the same issue if i use a RadioButtonControl
this is so annoying it should take 5 secs to create a Xamribbon group if this was working ...but instead i am stending 2 hours trying to find out why this is not working! it just seems to me the infragistics Silverlight Assembly still needs a lot of code fixing..i dont see why the sample would work and it wont work in my code and i am using the same version assembly v12.1 with the assembly
Can you please help ?
I've just been experiencing a similar problem, but not sure if it is quite the same - playing with the MaximumSize didn't seem to change anything.
It seems that the SmallImage and LargeImage properties on the ButtonTool control do not always work with simple image paths - I have had to fully qualify my path by putting the assembly name in. I think this was because I have a DataTemplate, which contains a ButtonTool control, and the template is defined in a different assembly from the one where my RibbonTab/RibbonGroup is defined (and where my image resources exist). Now that I've worked it out, I guess it makes sense.
The weird thing is, this was all working fine in my prototype application using the Microsoft Ribbon control - and only broke when I tried to swtich everything to the Infragistics Ribbon control. I didn't change anything about my code or the way I have things structured - I simply replaced the ribbon control, tabs, groups, and buttons in exactly the same way I was doing it before.
my cod e is all under one assembly and it still does not work as it should i went through different permutations of changing the small image to 32X32 image and then 16x16 image and then did the same for Large image and then switched from maximumsize to minimumsize and i got different result but in all this the 'ImageAndtextNormal' value just never worked! only image only and ImageAndTextLarge worked but i dont want any of those....the 'ImageAndTextNormal' is what is appropriate for what i am doing ...for now i have to use image only util infragistics can sort this out
Hi,
I tried to reproduce the issue you're describing, but to no avail. Do you think you could you attach a sample application that demonstrates the problem ?
Thanks,
Hi Georgi, you did not get the same issues ? that is strage what version of infragistics assembly are you using ? we have since abandon the XamlRibbon becasue of this issue and created our our Custom one using only silverlight controls in datatemplates to solve this...but still interested if you have an update that i dont have ?
thanks
Hello,
I have been following this thread and also had no trouble ButtonTools with images. I am using version 12.1’s latest internal build. I have also attached the sample project I created (Ribbon_Button_Images.zip)
Please let me know if you can reproduce your issue with it.