WPF C1DataGrid 滚动条
WPF C1DataGrid 滚动条如何在XAML 中设置鼠标进入时显示滚动条,离开隐藏。
本帖最后由 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;
}
页:
[1]