在我的带按钮的 ListView 中,出于某种未知原因,滚动不工作
。这是 Listview
<ListView RelativePanel.Below="Sep" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" RelativePanel.AlignBottomWithPanel="True" ScrollViewer.VerticalScrollMode="Enabled" ScrollViewer.VerticalScrollBarVisibility="Hidden" SelectionMode="Single"
SelectionChanged="ListBox_SelectionChanged" BorderBrush="White" Foreground="Black" Background="{x:Null}" >
<ListViewItem Name="Web" ManipulationMode="TranslateX"
ManipulationCompleted="SplitViewPane_ManipulationCompleted">
<StackPanel Orientation="Horizontal">
<Image Name="im2" Source="Resource/Site.png" Height="26" Width="26" />
<TextBlock Name="tx2" FontSize="16" Margin="15,0,0,0">Панель 2</TextBlock>
</StackPanel>
</ListViewItem>
<ListViewItem Visibility="Collapsed" Name="News" ManipulationMode="TranslateX"
ManipulationCompleted="SplitViewPane_ManipulationCompleted">
<StackPanel Orientation="Horizontal">
<Image Name="im3" Source="Resource/News.png" Height="26" Width="26" />
<TextBlock Name="tx3" FontSize="16" Margin="15,0,0,0">Панель 3</TextBlock>
</StackPanel> </ListViewItem> </ListView>
告诉我,可能是什么问题?(我怀疑是因为按钮)


我假设它
ListView在网格行中StackPanel或网格行中Height="auto"。将其放在大小为 的网格行中Height="*"。UPD:框架应该是这样的。
ScrollViewer我可以假设对工作表没有足够的控制工作表本身不包含
ScrollViewer