<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map Touch Tap To Mouse Click? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265173#M6919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer - the example you cite is for the ArcGIS API for Silverlgiht, and it does work with touch, but only sort of.&amp;nbsp; Using the mouse you can click to measure and double click to stop measuring.&amp;nbsp; Using touch you can tap to measure, however double tapping to stop measuring makes the map zoom in which is not expected or desirable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, can you please try the corresponding exmaple for the ArcGIS API for WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/wpf/samples/start.htm"&gt;http://help.arcgis.com/en/webapi/wpf/samples/start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... the corresponding ArcGIS API for WPF interactive sample -&amp;gt; behaviours and actions - utility actions - &amp;gt; measure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It most definitley does not work with a touch screen, and is different behavior than in the Silverlight example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how to make it work with the WPF example?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 13:14:06 GMT</pubDate>
    <dc:creator>johnbrosowsky</dc:creator>
    <dc:date>2011-12-09T13:14:06Z</dc:date>
    <item>
      <title>Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265155#M6901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to working with touch screens but we have a few and the touch gesters work great such as pan and zoom.&amp;nbsp; We have a toolbar with a few tools such as an identify tool and a measure tool, etc... these are listening for the mouse click event on the map...&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to handle both touch taps and mouse clicks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) For each tool we created do I need to handle both the MouseClick and the TouchUp events?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) This wont work for the measure action though because that is an action (which has the clicking embedded), so how do we use the measure action with touch?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for any info!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*EDIT*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So in I tried this in one of my tools:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.MapGesture += Identify_MapGesture;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Identify_MapGesture(Object sender, ESRI.ArcGIS.Client.Map.MapGestureEventArgs e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(e.Gesture == GestureType.Tap)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Map.MouseEventArgs mouseEventArgs = new ESRI.ArcGIS.Client.Map.MouseEventArgs();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mouseEventArgs.MapPoint = e.MapPoint; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Identify_MouseClick(sender, mouseEventArgs);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

And it works pretty good...
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 17:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265155#M6901</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-12T17:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265156#M6902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you saying that when you tap on the map, MouseClick does not fire? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Touch promotes mouse events as discussed here &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/dd894494(v=vs.95).aspx"&gt;http://msdn.microsoft.com/en-us/library/dd894494(v=vs.95).aspx&lt;/A&gt;&lt;SPAN&gt; (see "Promotion to Mouse Events" section)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can subscribe to both touch and mouse events but there is a risk of "Dualism". I don't think there is a need to raise MouseClick() inside MapGesture eventhandler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 19:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265156#M6902</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-12T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265157#M6903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer, thanks a lot for the reply.&amp;nbsp; I prefer not to have to subscribe to touch events if I can...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, no mouse click is fired when touching/tapping the map... I can touch to perform a click on buttons and such, but not the map.&amp;nbsp; So it seems that the "promotion to mouse events" is working for the WPF components, just not the map.&amp;nbsp; This is a WPF application by the way, not Silverlight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I am missing a setting or flag somewhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*EDIT* I just checked the "Pen and Touch" settings again on the Windows 7 touch screen computer.&amp;nbsp; Under the "Pen" tab there is an entry that maps a single-touch to single-click, but on the "Touch" tab there is no entry for single-touch and no way to add it.&amp;nbsp; But single-touch seems to work as a single-click in Windows itself... so is this a fixed mapping of the single-touch that is always set?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 20:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265157#M6903</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-12T20:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265158#M6904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh I see why that is happening now. MouseClick is an event from our API, which we only raise when triggered by mouse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you use MouseLeftButtonDown or MouseLeftButtonUp instead of MouseClick? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can refactor the code you have inside MouseClick eventhandler to a method that you can call inside MapGesture eventhandler. Similar to what you have but I imagine that refactored code will only need MapPoint as parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 20:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265158#M6904</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-12T20:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265159#M6905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, thanks Jennifer... I can change from MouseClick to MouseLeftButtonUp, that is no problem. Thanks for that info...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about the measure action though?&amp;nbsp; Any ideas why it is not detecting a click?&amp;nbsp; I am programatically invoking the measure action, would that cause any issues?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a ton!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*EDIT*&amp;nbsp; I take that back, I can't use MouseLeftButtonUp because I need the MapPoint, darn...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 21:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265159#M6905</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-12T21:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265160#M6906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just tried this sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#UtilityActions"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#UtilityActions&lt;/A&gt;&lt;SPAN&gt; on a touch-enabled device and it works fine for me. I'm able to draw the polyline by tapping the map to mark my vertices. Are you seeing something different when you use this sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 21:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265160#M6906</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-12T21:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265161#M6907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That example does work for me... hmmmm, so why is mine different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my own derived measure action so I can invoke it programatically:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public class ExecutableMeasureAction : MeasureAction
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Execute()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoke(null);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I setup the measure action property with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void InitializeMeasureAction()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Maps.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (MeasureAction != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.Detach();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Initialize
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction = new ExecutableMeasureAction();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.AreaUnit = ESRI.ArcGIS.Client.Actions.AreaUnit.Acres;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.DisplayTotals = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.DistanceUnit = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.MapUnits = MapUnit; //Dependency Property
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.MeasureMode = ESRI.ArcGIS.Client.Actions.MeasureAction.Mode.Polyline;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.FillSymbol = MeasureSymbol; //Dependency Property
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.Attach(Maps[0]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then to invoke the measure action:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MeasureAction.Execute();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am launching the action in a much different way, but still not sure why this would be different with the touch input...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265161#M6907</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2021-12-11T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265162#M6908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you put breakpoints in debug-mode, does InitializeMeasureAction() and Execute() get hit? When do you invoke MeasureAction.Execute() - through button click, mouse event?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265162#M6908</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-12T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265163#M6909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Both of these get hit... MeasureAction.Execute() gets set in a ToolbarItemClicked event handler from a class that is derived from ESRI.ArcGIS.Client.Toolkit.Toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if I use the mouse on the same touch machine, the measure works, but using the finger does not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265163#M6909</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-12T22:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265164#M6910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's hard to tell where the problem could be. Are you saying using touch, ToolbarItemClicked eventhandler is not hit, but using mouse it does?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 00:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265164#M6910</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-13T00:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265165#M6911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, ToolbarItemClicked is hit with both the mouse and the touch... MeasureAction.Execute() is executed both ways.&amp;nbsp; It�??s just that the measure action does not respond to map touches, just to map clicks.&amp;nbsp; Kind of weird...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 02:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265165#M6911</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-13T02:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265166#M6912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found another related issue too with my application on a touch screen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GraphicsLayer.MouseLeftButtonUp is an ESRI event, so as you said before it is not called with a touch... but I do not see any touch related events in GraphicsLayer so how can I handle this?&amp;nbsp; I have an eraser tool on our graphic toolbar so with this tool, when you click on a graphic (hence the GraphicsLayer.MouseLeftButtonUp) it can then remove the graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still havn't figured out why the measure works with the mouse and not the touch in the app either...&amp;nbsp; still poking around with it though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the help so far!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*EDIT*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like I might be able to hook up an event handler to each individual graphic... would be nice to just hook up to the graphic layer though&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 14:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265166#M6912</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-13T14:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265167#M6913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graphic.MouseLeftButtonUp doesn't fire on touch tap either (and its uses Microsoft's event args), so that didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 23:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265167#M6913</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-13T23:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265168#M6914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you would like to get the graphic based on touch gesture you can do something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 double tapTolerance = 30;
 private void MyMap_MapGesture(object sender, Map.MapGestureEventArgs e)
 {
&amp;nbsp; if (e.Gesture == GestureType.Tap)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; IEnumerable&amp;lt;Graphic&amp;gt; graphics = e.DirectlyOver(tapTolerance, new List&amp;lt;GraphicsLayer&amp;gt;() { layer });
&amp;nbsp;&amp;nbsp; if (graphics != null &amp;amp;&amp;amp; graphics.GetEnumerator().MoveNext())
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic graphic = graphics.First();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map+MapGestureEventArgs~DirectlyOver.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map+MapGestureEventArgs~DirectlyOver.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265168#M6914</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265169#M6915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer, Thanks so much for all the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That solved my problem for my graphic erase tool... maybe in the future Graphic and GraphicsLayer events will directly support touch too :).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still cannot get the MeasureAction to work though.&amp;nbsp; It seems to be an issue with WPF, that Silverlight does not have.&amp;nbsp; I recreated that Silvelright sample you linked to above in WPF and it does not work with taps, just clicks.&amp;nbsp; I wonder if it is a similar issue to what I posted here: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/21149-Slider-Inside-Of-Legend-Does-Not-Work-With-Touch-Screen-(Only-WPF"&gt;http://forums.arcgis.com/threads/21149-Slider-Inside-Of-Legend-Does-Not-Work-With-Touch-Screen-(Only-WPF&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 15:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265169#M6915</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-17T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265170#M6916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also puzzled why your MeasureAction does not respond to touch events when you say that all code is reached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also read your post about the Slider but I have not had the chance to replicate it yet. It could be because of some tolerance issue? Maybe you need to increase the size of the slider to accommodate touch gesture.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 03:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265170#M6916</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-01-18T03:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265171#M6917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try the MeasureAction in WPF on a touch screen?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the slider, I don't think it is a tolerance or size issue... I can clearly select the slider's thumb.&amp;nbsp; I think it is due to the fact that the Legend/Treeview control has scroll bars (only visible if needed) and those are capturing the touch slide gesture.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jennifer!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 13:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265171#M6917</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2011-01-18T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265172#M6918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same issue where the measure action where it will not work on a newer touch screen, when trying to measure by tapping on the screen.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??m using&amp;nbsp; ArcGISWPFSDK_DotNet40_VBNet.sln compiled using v2.2 ESRI assemblies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample application works when using a pen with the touch screen.&amp;nbsp; When using the Silverlight application I can measure by tapping on the screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??m using a new touch screen that supports gestures, when I try this on an older screen that doesn�??t support gestures I�??m able to measure by tapping.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 13:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265172#M6918</guid>
      <dc:creator>LeonKosiba</dc:creator>
      <dc:date>2011-07-19T13:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265173#M6919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer - the example you cite is for the ArcGIS API for Silverlgiht, and it does work with touch, but only sort of.&amp;nbsp; Using the mouse you can click to measure and double click to stop measuring.&amp;nbsp; Using touch you can tap to measure, however double tapping to stop measuring makes the map zoom in which is not expected or desirable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, can you please try the corresponding exmaple for the ArcGIS API for WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/wpf/samples/start.htm"&gt;http://help.arcgis.com/en/webapi/wpf/samples/start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... the corresponding ArcGIS API for WPF interactive sample -&amp;gt; behaviours and actions - utility actions - &amp;gt; measure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It most definitley does not work with a touch screen, and is different behavior than in the Silverlight example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how to make it work with the WPF example?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 13:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265173#M6919</guid>
      <dc:creator>johnbrosowsky</dc:creator>
      <dc:date>2011-12-09T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map Touch Tap To Mouse Click?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265174#M6920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did any of you ever figure out how to make measureactions work with touch input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 21:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-touch-tap-to-mouse-click/m-p/265174#M6920</guid>
      <dc:creator>ae</dc:creator>
      <dc:date>2012-08-22T21:32:44Z</dc:date>
    </item>
  </channel>
</rss>

