<?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.MouseLeftButtonDown not fired with EditGeometry in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594823#M15258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did. With the same result...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how does the EditGeometry tracks the dragging then? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there maybe a way to drag a polygon with the first click?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have to make the polygon editable by clicking on it, and then I have to click again to drag it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 08:15:29 GMT</pubDate>
    <dc:creator>JorisBeckers</dc:creator>
    <dc:date>2014-05-29T08:15:29Z</dc:date>
    <item>
      <title>Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594819#M15254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the EditGeomtry class for moving polygons in a graphic layer, and I need to know when I'm dragging the graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First I click the polygon, this starts the editing session. Then I can drag it around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the first click, both Map.MouseLeftButtonDown and Map.MouseLeftButtonUp are fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I then hold my left button to drag the graphic, the Map.MouseLeftButtondDown is not fired. When I release, Map.MouseLeftButtonUp does get fired. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that I want the ButtonDown event to know that I started dragging the graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there another property to indicate this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Map.MouseLeftButtonDown += (sender, e) =&amp;gt;
&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;&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; editor.StartEdit(graphic);
&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;&amp;nbsp; editing = 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };

void editor_GeometryEdit(object sender, EditGeometry.GeometryEditEventArgs 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.Action.ToString() == "EditCanceled")
&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; editing = false;
&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; else if (e.Action.ToString() != "EditStarted")
&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; editor.StopEdit();
&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; editing = false;
&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;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594819#M15254</guid>
      <dc:creator>JorisBeckers</dc:creator>
      <dc:date>2014-05-27T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594820#M15255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use MouseLEftButtonDown to detect that the dragging started, and set you flag to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use MouseMove event to detect that you are dragging and moving the graphic, and check your flag if true do what you want to do while dragging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And MouseLeftButton up to detect the end of dragging and the release of the graphic, and set your flag to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Asser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 06:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594820#M15255</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2014-05-28T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594821#M15256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that, from the moment the editor.StartEdit is called, I don't receive any MouseLEftButtonDown events anymore. When the dragging is finished, I get the GeometryMoved action, I stop the editing, and then I get the 'MouseLeftButtonUp'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts on how to get something similar to the MouseLeftButtonDown event when the editor is already started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 09:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594821#M15256</guid>
      <dc:creator>JorisBeckers</dc:creator>
      <dc:date>2014-05-28T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594822#M15257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try using GraphicLayer MouseLeftButtonDown event instead of the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Asser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 06:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594822#M15257</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2014-05-29T06:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594823#M15258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did. With the same result...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how does the EditGeometry tracks the dragging then? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there maybe a way to drag a polygon with the first click?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have to make the polygon editable by clicking on it, and then I have to click again to drag it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594823#M15258</guid>
      <dc:creator>JorisBeckers</dc:creator>
      <dc:date>2014-05-29T08:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594824#M15259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a sample project of it with Silverlight 5 and the 3.1 API. You can dowload it &lt;/SPAN&gt;&lt;A href="https://dl.dropboxusercontent.com/u/110352157/TestEditGeometry.zip"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reproduce my problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Click on a ship. In the output window of VS, you see the Featurelayer.Buttondown, the Map.Buttondown, the Map.MouseButtonUp and the EditGeometry.Action.EditStarted are fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The object is now focused and read to be dragged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If you click again, you ONLY get LeftButtonUp event and EditCanceled action. So NO buttondown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Click again on a ship to start editing, this gives the same as 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Click outside the focused object, you get the Map.ButtonDown and Map.ButtonUp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Hold your mouse left button down within the focused object. You see that there is NO Map.LeftButtonDown fired, nor a FeatureLayer.ButtonDown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Drag the object and release: You get the MousLeftButtonUp and the GeometryMoved action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I thus need I in step 5, a certain LeftButtonDown event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of my thoughts was that from the moment you start editing, the object is transferred to a new object. And maybe I need NewObject.MouseLeftButton down. But I�??ve no idea on how to find that object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you maybe have an idea or trick to solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 09:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594824#M15259</guid>
      <dc:creator>JorisBeckers</dc:creator>
      <dc:date>2014-06-05T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594825#M15260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi thanks for providing a sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand your problem, would you please tell me what exactly do you need to do by tracking the moving graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you will do or show when you know that the user is actually moving the editing graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Asser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 22:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594825#M15260</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2014-06-09T22:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseLeftButtonDown not fired with EditGeometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594826#M15261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually need two related things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I have another points layer and I need to find the closest point at every moment in time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I want to draw a line between the ship and that point. This line thus has to move together with the ship while dragging it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can do all this by grabbing the geometry in the MouseMove event. But I only want this geometry while dragging, and therefore i need to know when the dragging started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 05:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mouseleftbuttondown-not-fired-with/m-p/594826#M15261</guid>
      <dc:creator>JorisBeckers</dc:creator>
      <dc:date>2014-06-10T05:21:20Z</dc:date>
    </item>
  </channel>
</rss>

