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.
Your answer worked but I am a little confused. When you say the item in the carousel are you referring to the rectangle or the textblocks? Do I need to adjust my path or change the settings in the carousel? I would like to adjust the height of the canvas so I can display more text. In this example I set the canvas to 140 like suggested but the height I adjusted to 100. This once again resulted in scrollbars. Does my path need to be adjusted? Should I be doing something different or is there a better approach. On a side note when the item in the carousel is selected is there a way to not change the selected items background and leave it transparent?
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.