private void RaiseElementDraggedEvent(FrameworkElement element, Point offset, ContactEventArgs e) { ElementRoutedEventArgs newEventArgs = new ElementRoutedEventArgs(element, offset, e); newEventArgs.RoutedEvent = ElementDraggedEvent; RaiseEvent(newEventArgs); }