I have two list views, a parent that contains a child list view with its item template.
<ListView Name="TopView">
<ListView.ItemTemplate>
<DataTemplate>
<ListView ItemsSource="{Binding SubList}"Focusable="False">
<ListView.Background>
<SolidColorBrush Color="Transparent"/>
</ListView.Background>
<ListView.ItemTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
<ColumnDefinition Width="50" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Path=Number}" Grid.Column="0" />
<TextBlock Text="{Binding Path=Type}" Grid.Column="1" />
<TextBlock Text="{Binding Path=Code}" Grid.Column="2" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Whenever attempting to use TopView.SelectedValue, the value returned is always null.
How can I make the parent ListView be the only ListView to accept selection events instead of the child ListView? I figure I need to do something with event routing but I'm not sure what.