Hi,
Try:
MyMapView.InteractionOptions.ZoomOptions.IsDoubleTappedEnabled = false;
public partial class MainPage : UserControl { bool dblClick = false; DispatcherTimer TimeDblClick = new DispatcherTimer(); public MainPage() { InitializeComponent(); TimeDblClick.Tick += new EventHandler(DblClickTimer); TimeDblClick.Interval = TimeSpan.FromMilliseconds(400); } private void DblClickTimer(object sender, EventArgs args) { dblClick = false; TimeDblClick.Stop(); } private void Map_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (dblClick) { //if it is a double click do this... e.Handled = true; dblClick = false; TimeDblClick.Stop(); } else //User has not clicked here before (a single click), start double click timer { //not a double click so don't handle the mousedown e.Handled = false; dblClick = true; //restart timer to count time between clicks TimeDblClick.Start(); } } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.