Hi
I know it is possible to do this with markers (WpfDesktopEdition.Marker). Just using the code below (and add some code to control the PanMode):
void marker_PreviewMouseDown(object sender, MouseButtonEventArgs e){
wpfMap1.ExtentOverlay.PanMode = MapPanMode.Disabled;
}
void marker_MouseLeave(object sender, MouseEventArgs e){
wpfMap1.ExtentOverlay.PanMode = MapPanMode.StandardPanning;
System.Windows.DragDrop.DoDragDrop(wpfMap1, objectToDrag, DragDropEffects.All);
}
void marker_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e){
wpfMap1.ExtentOverlay.PanMode = MapPanMode.StandardPanning;
}
Is possible to configure the drag and drop of a feature to out of map componente (WpfDesktopEdition.WpfMap)?
My dificulty is because my feaures are polygons that are in InMemoryFeatureLayer. And I do not have the events (MouseDown, MouseLeave, MouseUp) like the markers.
I have attached an png that ilustrat what i am trying to do.
Thanks