I have two tree views in a grid. This grid is in a ScrollView. (The reason for this was to have both tree nodes of ob view always at the same relative depth).
My Issue is now, that the Scroll view does not scroll when my mouse hovers over the Tree and then using the mouse wheel. Whe I hover over the other inner view (ConnectionView), it works fine.
My View:
<!-- Window -->
<ScrollViewer VerticalScrollBarVisibility="Visible">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TreeView Grid.Column="0" ItemsSource="{Binding Path=TreeNodesLeft}" >
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}" >
<local:TreeNodeView />
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<!--styles -->
</TreeView>
<Grid Grid.Column="1" >
<local:ConnectionView DataContext="{Binding Path=Connections}" />
</Grid>
<TreeView Grid.Column="2" ItemsSource="{Binding Path=TreeNodesRight}">
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}" >
<local:TreeNodeView />
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<!--styles -->
</TreeView>
</Grid>
</ScrollViewer>
<!-- Window -->