私は のTreeView
中に を持っていますPopup
。アイデアは、ユーザーが から選択し、TreeView
開いているノードを表示できるようにすることです。コードは次のとおりです。
<Popup PlacementTarget="{Binding ElementName=TBXProjection}" Style="{StaticResource ProjPopupStyle}" VerticalOffset="27" HorizontalOffset="-262" Margin="0,0,465,279" Name="PopupProjection" AllowsTransparency="True" Placement="Top">
<Grid>
<Border BorderThickness="2" Background="DodgerBlue" BorderBrush="DodgerBlue" Padding="0" CornerRadius="6">
<ScrollViewer Height="275" Name="scrollViewer1" Width="260" BorderBrush="Black" Background="DodgerBlue">
<TreeView Name="dirTree" ItemsSource="{Binding Source={StaticResource xmldata}, XPath=.}" VirtualizingStackPanel.IsVirtualizing="False" VirtualizingStackPanel.VirtualizationMode="Standard" SelectedItemChanged="dirTree_SelectedItemChanged"/>
</ScrollViewer>
</Border>
</Grid>
</Popup>
これが何をしているのかです。これが私がする必要があることです。
ユーザーが手動で下にスクロールして情報を取得できることはわかっていますが、ユーザーが (たとえばワイオミング) を選択すると、別の子供を選択する意図があります。スクロールが自動的に開き、選択できるようになります。
微調整が必要な正しいプロパティを教えてもらえますか?