In previous desktop edition, when user right click on the map and move the mouse while the mouse button is pressed, the map does not move with the mouse. Now, in this WPF APi the map moves with the mouse. How can i restrict map to move when the user move the move after pressing mouse right button.
Thanks for reporting this; we transferred the features from the previous desktop to this new one, I think we missed this specific operation. We have fixed synchronize and please try the daily build tomorrow.
On the other hand, I have a workaround for you temporary which to rewrite the ExtentInteractiveOverlay. Please see the code below.
// This is new ExtentInteractiveOverlay public class LeftButtonPanningExtentInteractiveOverlay : ExtentInteractiveOverlay { protected override InteractiveResult MouseDownCore(InteractionArguments interactionArguments) { InteractiveResult result = base.MouseDownCore(interactionArguments); if (ExtentChangedType == ExtentChangedType.Pan && interactionArguments.MouseButton != MapMouseButton.Left) { ExtentChangedType = ExtentChangedType.None; }
return result; } } // Replace the ExtentInteractiveOverlay to this new one.
Map1.ExtentOverlay = new LeftButtonPanningExtentInteractiveOverlay();