I'm generating buttons for a RibbonGroup from a backing collection, and am having a couple of issues. I've pasted the code below.
First, the size of the buttons is always reverting to small. I instead want to display the Large 32x32 image and text. Attached is an image showing how it currently renders with 5 buttons.
Secondly, I'd like to bind the LargeImage property to a value in my viewmodel, just as I'm doing for the Caption and IsChecked. How can I do that - I've tried a few things but it seems it's not straightforward.
Thanks in advance.
<igRibbon:RibbonGroup Caption="Current Environment"> <ItemsControl ItemsSource="{Binding Environments}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <igRibbon:RadioButtonTool Caption="{Binding Label}" IsChecked="{Binding IsSelected}" igRibbon:RibbonGroup.MinimumSize="ImageAndTextLarge" LargeImage="/Resources;component/Images/Icons/32x32/gear.png" /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </igRibbon:RibbonGroup>
Hello,
I have tested the sample with the RTM(1002) of version 11.1 and as you said the images were small. I also tested it with the latest service release for 11.1 (2282) and there the issue has been resolved, so I suggest you download it by logging to our web site and going to Account \Keys & Downloads.
Hope this helps you.
Just ran your provided solution, and it still displays the small images for me. Large buttons, but small image.
I'm using v11.1 - is there likely a difference between your v12.1 and 11.1?
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.
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 and I created a sample project for with the functionality you want. Basically set the RibbonGroup’s ItemsSource and create an ItemTempalte. Also instead of MinimumSize I set the RadioButtonTool’s MaximumSize to ImageAndTextLarge. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Can anyone help with my first question above?