How do i create an event for it to detect that the user tapped on the item in listbox
<!--Pivot Control-->
<controls:Pivot Title="MY APPLICATION">
<!--Pivot item one-->
<controls:PivotItem Header="item1">
<ListBox x:Name="lbFiles" HorizontalContentAlignment="Stretch" ItemTemplate="{StaticResource DataTemplate1}">
</ListBox>
</controls:PivotItem>
<!--Pivot item two-->
<controls:PivotItem Header="item2">
</controls:PivotItem>
</controls:Pivot>
Code behind
private void lbFile_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
selected = lbFiles.SelectedItem.ToString();
general item = new general();
item.viewimage(selected);
NavigationService.Navigate(new Uri("/View.xaml", UriKind.Relative));
}
headache THanks! :D