问题描述
这是我的网格,无论我尝试什么,我都无法显示 VerticalScrollBar。
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Style="{StaticResource MaterialDesignScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
</Grid>
</ScrollViewer>
</Grid>
我需要同时水平和垂直拉伸网格,以便它可以动态调整自身大小。
我什至尝试将 Grid 和 ScrollViewer 的高度设置为 Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}},Path=ActualHeight}"
。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)