void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)//返回键事件 { e.Handled = true; if (List.Visibility == Visibility.Collapsed) { if (Frame.CanGoBack) { Frame.GoBack(); } else { Application.Current.Exit(); } } else { DM6.Begin(); } }
private void List_PointerPressed(object sender, PointerRoutedEventArgs e) { DM6.Begin();//执行动画 }