public void SDV_AppointmentTap(object sender, System.Windows.Input.GestureEventArgs e) { PocalAppointment pocalAppointment = ((FrameworkElement)sender).DataContext as PocalAppointment; Storyboard storyboard = ((FrameworkElement)sender).Resources["tapFeedback"] as Storyboard; if (storyboard != null) { storyboard.Begin(); } Dispatcher.BeginInvoke(() => { PocalAppointmentHelper.EditAppointment(pocalAppointment); }); }
public void SDV_AppointmentTap(object sender, System.Windows.Input.GestureEventArgs e) { //UpdateLayout(); // Vielleicht verlangsamt das die UX! Vielleicht behebt das jedoch den TapOffset Bug. PocalAppointment pocalAppointment = ((FrameworkElement)sender).DataContext as PocalAppointment; Storyboard storyboard = ((FrameworkElement)sender).Resources["tapFeedback"] as Storyboard; if (storyboard != null) { storyboard.Begin(); } Dispatcher.BeginInvoke(() => { PocalAppointmentHelper.EditAppointment(pocalAppointment); }); }
private void Edit_OnTap(object sender, GestureEventArgs e) { var pocalAppointment = (PocalAppointment)LayoutRoot.DataContext; PocalAppointmentHelper.EditAppointment(pocalAppointment); }