Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Re: Selected Gallery Item in Ribbon not being highlighted
posted

Hi Andrew,

I have a problem in using Gallery Tool in infragistics.

I have a GalleryToolGroup to which I added GalleryToolItems. but the problem is as I declare the key for each GalleryToolItem,

I get an error saying Key cannot be null or Stirng.Empty only for the first GalleryToolItem in the group.

Please helpme in solving this issue.

I am also including my code snippet.

<igRibbon:GalleryTool ItemBehavior="StateButton"

SelectedItem="{Binding SelectedGalleryItem}">

<igRibbon:GalleryTool.Groups>

<igRibbon:GalleryItemGroup Title="Opened Projects" >

<igRibbon:GalleryItemGroup.ItemKeys>

<sys:String>Item1</sys:String>

<sys:String>Item2</sys:String>

</igRibbon:GalleryItemGroup.ItemKeys>

</igRibbon:GalleryItemGroup>

</igRibbon:GalleryTool.Groups>

<igRibbon:GalleryTool.Items>

<igRibbon:GalleryItem Key="Item1" Text="Hello" Image="../Images/OurSolution.png"

 Tag="Times New Roman;11.0;0,0,0;Item1" />

<igRibbon:GalleryItem Text="Hi" Image="/EAB.Premium.UX;component/Images/OurSolution.png"

Tag="Tahoma;14.0;0,0,0;Item2" IsSelected="True" Key="h"

 FrameworkElement.FlowDirection="RightToLeft"

igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"

igRibbon:RibbonGroup.MinimumSize="ImageAndTextLarge"/>

</igRibbon:GalleryTool.Items>

</igRibbon:GalleryTool>

Parents
No Data
Reply Children
No Data