当嵌套在网格中时,ListView滚动怎么不起作用?
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListView Grid.Row="0" ItemsSource="{Binding Person}" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.CanContentScroll="True" >
<ListView.View>
<GridView>
<GridViewColumn DisplayMemberBinding="{Binding Path=Id}" Header="Id" Width="100"/>
<GridViewColumn DisplayMemberBinding="{Binding Path=Name}" Header="Name" Width="Auto" />
</GridView>
</ListView.View>
</ListView>
<Grid>
答案 0 :(得分:-1)
解决方案是从&#34; Auto&#34;更改网格行高。到特定值,例如150。滚动应该工作是你的列表包含足够的元素来激活滚动。
解决方案:
UPDATE Table_B
SET
Table_B.col1 = Table_A.col1,
Table_B.col2 = Table_A.col2
FROM
Tableone AS Table_B
INNER JOIN TableTwo AS Table_A
ON Table_B.some_id = Table_A.some_id