Not-working CalloutDefinition button when using touch screen

457
2
10-05-2018 06:27 AM
Labels (1)
PiotrekGaszewski
New Contributor II

Hi Experts.
We have a problem with using ArcGIS Runtime API for WPF when users uses touch screens to interact with the application.


We have the custom popup control on the MapView feature layer. We use CalloutDefinition class to set it up. The popup contains button which run some business logic when clicked.

Everything works well when users are using mouse to interact with application. However when they using touch-screens and perform "click" with their fingers - the OnButt event is not raised and "ExecuteSomeBusinessLogic" method is not executed (from the user perspective button finger-touched image presented on the screen looks like it was in the "selected" state, not the "clicked" one).

Sample code we're using to set-up CalloutDefinition control:

RuntimeImage img = new RuntimeImage(new Uri("pack://application:,,/Images/add.png"));
calloutDefinition.ButtonImage = img;
calloutDefinition.OnButt += ExecuteSomeBusinessLogic;

Any ideas what may cause this problem? Solution or workarounds to solve it?

0 Kudos
2 Replies
PiotrekGaszewski
New Contributor II

Of course, valid code is:

RuntimeImage img = new RuntimeImage(new Uri("pack://application:,,/Images/add.png"));
calloutDefinition.ButtonImage = img;
calloutDefinition.OnButtonClick += ExecuteSomeBusinessLogic;

0 Kudos
SkyWatch
New Contributor

Piotrek Gaszewski‌, did you ever find a reason or a solution to this issue? We are experiencing a similar thing with callouts and touch events.

0 Kudos