<controls:PivotItem Header="item1">
<Grid>
<phone:WebBrowser IsHitTestVisible="False" Source="www.google.com">
<toolkit:GestureService.GestureListener>
<toolkit:GestureListener Tap="onTap" Flick="GestureListener_Flick" />
</toolkit:GestureService.GestureListener>
</phone:WebBrowser>
</Grid>
</controls:PivotItem>
код этого
private void onTap(object sender, GestureEventArgs e)
{
MessageBox.Show("tap");
// Listbox.index = m.SelectedIndex;
// m.SelectedIndex = -1;
// App.Navigate(new Uri("/Home.xaml", UriKind.Relative));
}
private void GestureListener_Flick(object sender, FlickGestureEventArgs e)
{
if (e.Direction == System.Windows.Controls.Orientation.Horizontal)
{
if (e.HorizontalVelocity < 0)
{
MessageBox.Show("right");
}
else
{
MessageBox.Show("left");
}
}
else
{
if (e.VerticalVelocity < 0)
{
MessageBox.Show("up");
}
else
{
MessageBox.Show("down");
}
}
}
но это не работает ...
Спасибо заранее ..