private void ListBoxGallery_TouchUp(object sender, TouchEventArgs e) { TouchPoint pt = e.GetTouchPoint(this); double RealPos = GetDistanceTwoPoints(pt.Position, altPos.Position); if (RealPos < ConfigVariable.TouchAbsVal) { phWind = new PhotoViewer(ref PhotoGallery, Lbx_Gallery.SelectedIndex); phWind.ShowDialog(); } }
private void ListBoxGallery_MouseDoubleClick(object sender, MouseButtonEventArgs e) { PhotoViewer phWind = new PhotoViewer(ref PhotoGallery, Lbx_Gallery.SelectedIndex); phWind.ShowDialog(); }