本帖最后由 Richard.Ma 于 2020-4-28 16:14 编辑
问题已收到,我验证了一下,这个目前没有专门的设置来改变,只能是在MouseEnter和MouseLeave事件中加,也可以实现
- private void grid_MouseEnter(object sender, MouseEventArgs e)
- {
- grid.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
- grid.HorizontalScrollBarVisibility = ScrollBarVisibility.Visible;
- }
- private void grid_MouseLeave(object sender, MouseEventArgs e)
- {
- grid.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
- grid.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden;
- }
复制代码
|