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
1871
Trouble with selected items and scrollbars.
posted

I have a carousel list box that contains multiple rectangles. These rectangles are inside a canvas. The canvas has two text blocks. If the item inside the carousel is selected scrollbars appear. There is no reason for the scrollbars to appear because everything inside the text block displays correctly. I have tried many things like setting ScrollViewer.CanContentScroll="False" and SelectiveScrollingGrid.SelectiveScrollingOrientation="None". Nothings seems to help. Any idea on what changes I need to make the scrollbars hidden? I have supplied a sample of the code. It only contains one rectangle but once selected you will see the scrollbars appear. Maybe my approach is wrong if so I guess I would need to know the recommended way to add items to carousel list box. Thanks in advance.

SelectedItemScrollbar.zip