Hello, I have a ribbon and a Gallery with some variable GalleryToolItems; I would like to see on preview of Gallery a GalleryToolItem selected by code. I have tryed two ways:
- Set property "SelectedItem" to true on desired item: that will make selected the item but not visible on preview
- Used method "BringIntoView" of GalleryToolItem but I receive an exception "The item cannot be brought into view if the gallery preview is not showing"
Is there a different way to obtain what desired?
Thank you very much for help and suggestions.
Marcello
Hi Marcello,
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
thank you very much for reply. Unfortunately that is not exctly was I'm looking for. I explain better. I have user the gallery like a big combo box with only a column and no groups and big images with text and description. Now I need to select an item via code and make this item visible in the preview pane of gallery. Attached the source code where I simulated the situation.
Thank you very much for your help.
Marcllo
Hi,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
From what I understand after reading your post, you want what I did in the sample. Please add tool.DropDown() after your line for the selected item in the button click event.