MouseDoubleClick

136
4
Jump to solution
06-28-2022 11:28 PM
DavidMrázek
Occasional Contributor II

Hi,
how can I set mouse double click to exit MapTool Add-in ?
I can't find it anywhere at all.

Thanks for the anwers.

David

0 Kudos
1 Solution

Accepted Solutions
KrisCulin
Occasional Contributor

@DavidMrázek  You should also look at OnToolDoubleClick and OnDoubleClick.  It appears we use the latter.

Kris

View solution in original post

4 Replies
GintautasKmieliauskas
Regular Contributor

Hi,

Override MapTool method:

        protected override Task HandleDoubleClickAsync(MapViewMouseButtonEventArgs e)
        {
            return base.HandleDoubleClickAsync(e);
        }
0 Kudos
DavidMrázek
Occasional Contributor II

Hi,

it's interesting, but after double-clicking it doesn't fit into the method at all.

0 Kudos
KrisCulin
Occasional Contributor

@DavidMrázek  You should also look at OnToolDoubleClick and OnDoubleClick.  It appears we use the latter.

Kris

DavidMrázek
Occasional Contributor II

Thank you Kris, OnToolDoubleClick works perfectly.

0 Kudos