I have a gallery in my ribbon bar and depending on the current selection in the form I wish to scroll a particular item into view in the gallery preview area. I use the code below:
if (chartGallery.UIElement != null)
{
}
The initial check is to make sure the gallery is being displayed, if it's not an exception would be thrown when BringIntoView() was called. When I step through the code it all seems correct, the method is executed for the correct item but the display does not change at all! :(
Can anyone tell me what I'm doing wrong?
Thanks.
Brian
In that case I am unsure about what the problem might be. I would recommend submitting the issue to the support group: http://ko.infragistics.com/gethelp.
I stepped through the code in the debugger and BringIntoView was being called, but it didn't scroll the item into view. :( I'm using version 7.3.
Is BringIntoView getting called, or is the UIElement always null? I tried using the code you posted above with an instance tool from a ribbon group as the chartGallery instance and it worked for me. Also, what version are you using?