WPF accessing scrollviewer of a listview codebehind
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"