here is my XAML and I am trying to get the value of the selected item in the Context Menu. I do not have the property of selected Item in my xaml. Is there another route i should go so that i am able to get the selected items from the context menu?
<Style x:Key="ContextMenuItemStyle" TargetType="{x:Type MenuItem}">
<Setter Property="ItemsSource" Value="{Binding SubItem}"/>
<TextBox Grid.ColumnSpan="8" Grid.RowSpan="2" x:Name="tbRadStudyType" Text="Click to set Care Plan Type" IsReadOnly="True" Margin="2" TextWrapping="Wrap">
<i:Interaction.Triggers>
<i:EventTrigger EventName="PreviewMouseDown">
<i:InvokeCommandAction Command="{Binding PreviewMouseDownCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<TextBox.ContextMenu>
<ContextMenu ItemsSource="{Binding PlanMainList}"
ItemContainerStyle="{StaticResource ContextMenuItemStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="PreviewMouseDown">
<i:InvokeCommandAction Command="{Binding PreviewMouseDownCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<ContextMenu.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Term}" />
</DataTemplate>
</ContextMenu.ItemTemplate>
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>