Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果滚动条未启用(当内容适合窗口时),我如何隐藏它?我尝试使用 is-enabled 属性但没有用。
我假设您有一个ScrollViewer并且您只想在Scrollbars需要它们时显示?
ScrollViewer
Scrollbars
在这种情况下,您可以设置:
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"