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
1005
Can't get GalleryToolItem.BringIntoView() to work!
posted

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)

{

item.BringIntoView(chartGallery, null, GalleryArea.Preview);

}

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