I have a TreeView with a few hundred leaves organized in a few dozen nodes... enough nodes to require scrolling to see them all.
Usually all works fine, but when the expanded nodes would not all fit within the ScrollViewer, clicking on a node to expand it also scrolls the whole TreeView back up to the top (hiding the just-expanded leaves until you scroll back down manually).
This is not the same issue as WPF TreeView with IsVirtualizing="true" jumps around when changing focus and scrolling because a) I'm not setting the vitualizing stack panel options; and b) This is .NET 4 (that link reports the issue only applied to 3.5).
<DataTemplate x:Key="QuestionTemplate">
<Border BorderBrush="AliceBlue" BorderThickness="1">
<HeaderedContentControl HeaderTemplate="{DynamicResource QuestionHeaderTemplate}"
Header="{Binding NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True}" IsTabStop="False" HorizontalAlignment="Left"
IsEnabled="True" />
</Border>
</DataTemplate>
<HierarchicalDataTemplate x:Key="GroupTemplate" ItemsSource="{Binding MyData, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True, Mode=TwoWay}"
ItemTemplate="{StaticResource MyTemplate}">
<Border x:Name="GroupTemplateBorder" BorderBrush="AliceBlue" BorderThickness="1" CornerRadius="10">
<HeaderedContentControl x:Name="GroupTemplateExpander" MinHeight="22" HeaderTemplate="{DynamicResource GroupHeaderTemplate}" Header="{Binding}" IsTabStop="False"
HorizontalAlignment="Left" VerticalContentAlignment="Center" IsEnabled="True" />
</Border>
</HierarchicalDataTemplate>
<ScrollViewer HorizontalScrollBarVisibility="Auto">
<Grid Name="gridPicker" Background="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<TreeView Name="treeView" MinHeight="20" ItemTemplate="{StaticResource GroupTemplate}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="helper:TreeViewNoSelectBehavior.IsTransparent" Value="True" />
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
</Grid>
</ScrollViewer>