简体   繁体   中英

WPF Scrolling content horizontally

I need to create a panel, which layouts some elements from left to right. There is a lot of elements, so scrollbar is needed. I could use StackPanel+ScrollViewer, but ScrollContentPresenter inside the ScrollViewer clips my elements on top and bottom. No clipping near the top and bottom borders of the panel is important for me. Any ideas?

Thanks in advance.

Solved using the adorner layer. Thanks to all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM