/// <summary> /// Reset the Touch handlers for the AssociatedObject /// </summary> private void ResetAssociatedObject(FrameworkElement associatedObject) { if (associatedObject == null) { return; } associatedObject.MouseLeftButtonUp -= OnMouseUp; associatedObject.MouseLeftButtonDown -= OnMouseDown; associatedObject.MouseMove -= OnMouseMove; associatedObject.LostMouseCapture -= OnLostMouseCapture; associatedObject.Loaded -= AssociatedObjectLoaded; TouchHelper.RemoveHandlers(associatedObject); // Better to not disable the TouchHelper here otherwise touch events will be disabled for all other elements using the Behavior // TouchHelper.EnableInput(false); }