我在ScrollViewer中有ListView。如果我将listview滚动到底部,listview的标题会消失,如何让它不断显示?
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Top">
<ScrollViewer Grid.Row="2" Grid.Column="0">
<ListView x:Name="cashMagListView"
Margin="10"
SelectionMode="Single"
VirtualizingStackPanel.IsVirtualizing="False">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Height" Value="35" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
</ListView.ItemContainerStyle>
<ListView.View>
<GridView>
<GridView.Columns>
<GridViewColumn Width="Auto" DisplayMemberBinding="{Binding AutomatNumber, Converter={StaticResource EmptyStringConverter}}" Header="Biletomat" />
</GridView.Columns>
</GridView>
</ListView.View>
</ListView>
</ScrollViewer>
</Grid>