设置scrollviewer的垂直滚动条可见
我正在尝试将垂直滚动条可见性设置为在按钮单击事件期间可见。为什么我不能做这样的事情?
在单击事件之前,XAML:
<ScrollViewer VerticalScrollBarVisibility="Hidden" Height="178.75" Width="680" Name="Scroller">
C# 中的按钮单击事件:
Scroller.VerticalScrollBarVisibility = Visibility.Visible;
i am trying to set the verticalscrollbar visibility to be visible during a button click event. Why can't i do something like this?
before click event, XAML:
<ScrollViewer VerticalScrollBarVisibility="Hidden" Height="178.75" Width="680" Name="Scroller">
button click event in C#:
Scroller.VerticalScrollBarVisibility = Visibility.Visible;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-.-
这是错误的枚举:
您应该真正检查 属性类型,然后再为其分配随机内容。
-.-
It's the wrong enumeration:
You should really check the types of properties before assigning random stuff to it.