private void Flickable_HorizontalFlick(object sender, IdentityMine.Windows.SimpleMultitouch.FlickEventArgs e) { if(e.AlignedDirection.X <0) flipper.Rotate(true); else flipper.Rotate(false); }
private void TapBehavior_DoubleTap(object sender, IdentityMine.Windows.SimpleMultitouch.TapEventArgs e) { if (MainViewModel.Instance.IsAdmin) { FrameworkElement elem = sender as FrameworkElement; if (elem != null && elem.DataContext != null) { ((CardDeck)elem.DataContext).EditDeck.Execute(null); } } }
private void Flickable_HorizontalFlick(object sender, IdentityMine.Windows.SimpleMultitouch.FlickEventArgs e) { ListBoxItem item = (ListBoxItem)HelperClass.FindVisualAncestor((DependencyObject)sender, (o) => o.GetType() == typeof(ListBoxItem)); if (item != null) item.IsSelected = !item.IsSelected; }