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
Parents
  • 35319
    posted

    Hello Michael,

     

    I have been looking into your issue and my suggestion is to set the width of the Canvas element to “140” instead of “150”. It seems that the width of the canvas is bigger than this one of the carousel item element and it automatically makes scrollbar appears.

     

    Let me know, if this meets your requirements.

Reply Children