Hi,
I want to handle the mouse left button down event inside the datatemplate of the listbox.
This is my code:
<ListBox ItemsSource="{Binding Key}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" >
<TextBlock Text="{Binding}" />
<Ellipse Margin="10,0,0,0" Height="10" Width="10" Stroke="Black" StrokeThickness="1"
Name="Left"
PreviewMouseLeftButtonDown="Left_PreviewMouseLeftButtonDown"
MouseLeftButtonDown="Left_MouseLeftButtonDown"
/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
But i am unable to handle those events in the "Ellipse".
May i know where i am mistaking.
Thanks in advance.
NANDAKUMAR.T