我有一个滚动条,当我站在上面时,它滚动得很好,但是如果我站在堆栈面板内的内容上(用滚动查看器包裹),滚动条不起作用,为什么?
<ScrollViewer Grid.Column="0" VerticalScrollMode="Enabled" VerticalScrollBarVisibility="Auto">
<StackPanel Orientation="Vertical">
<TextBlock Text="Participants" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<TextBlock Text="{Binding Path=Users.Count}" />
<TextBlock Text="/" />
<TextBlock Text="{Binding MaxParticipants}" />
</StackPanel>
<ListView ItemsSource="{Binding Users}" Tapped="User_Tapped">
<ListView.ItemTemplate>
<DataTemplate>
<ListViewItem IsHitTestVisible="False">
<StackPanel>
<facebookControls:ProfilePicture ProfileId="{Binding FacebookId}" />
<TextBlock Text="{Binding UserName}" />
</StackPanel>
</ListViewItem>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
</ScrollViewer>