<?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: Drag a Graphic or Feature Using Mouse (WPF/v100.2) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421106#M5068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a similar kind of workaround, but it's an awkward, unusual interaction for the user. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2018 14:25:11 GMT</pubDate>
    <dc:creator>KeithGemeinhart1</dc:creator>
    <dc:date>2018-03-23T14:25:11Z</dc:date>
    <item>
      <title>Drag a Graphic or Feature Using Mouse (WPF/v100.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421104#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to select a feature, and then click &amp;amp; hold the mouse button to drag it to a new location, setting the new location when the mouse button is released. However, the mouse move events don't seem to be firing when the left mouse button is held down. I suspect this is related to the map panning operation, which is also done with mouse-down-drag-release sequence. But, it's the same with the right mouse button held down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried turning off panning with this code, but no luck. Still no mouse move events.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MainMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InteractionOptions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapViewInteractionOptions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
MainMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InteractionOptions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsPanEnabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried right mouse button down with sketch editor active and again no mouse events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way for me to get mouse move events with either of the buttons held down?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421104#M5066</guid>
      <dc:creator>KeithGemeinhart1</dc:creator>
      <dc:date>2021-12-11T19:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Drag a Graphic or Feature Using Mouse (WPF/v100.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421105#M5067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted to do this a while ago. I instead settled with clicking the graphic which then "picked it up" and then I could move my mouse round and then click again when I wanted to place it. It wasn't quite drag and drop, but it was very close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 09:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421105#M5067</guid>
      <dc:creator>AaronMurphy3</dc:creator>
      <dc:date>2018-03-23T09:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Drag a Graphic or Feature Using Mouse (WPF/v100.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421106#M5068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a similar kind of workaround, but it's an awkward, unusual interaction for the user. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421106#M5068</guid>
      <dc:creator>KeithGemeinhart1</dc:creator>
      <dc:date>2018-03-23T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Drag a Graphic or Feature Using Mouse (WPF/v100.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421107#M5069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, it's not ideal. My process goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Turn on graphic editing&lt;/P&gt;&lt;P&gt;&amp;gt; Click marker (highlights it blue)&lt;/P&gt;&lt;P&gt;&amp;gt; Press "Move Marker" button&lt;/P&gt;&lt;P&gt;&amp;gt; Marker now moves with the mouse&lt;/P&gt;&lt;P&gt;&amp;gt; Click map to place in new spot&lt;/P&gt;&lt;P&gt;&amp;gt; Press save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ugly, but works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421107#M5069</guid>
      <dc:creator>AaronMurphy3</dc:creator>
      <dc:date>2018-03-23T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Drag a Graphic or Feature Using Mouse (WPF/v100.2)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421108#M5070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a similar application where I needed to drag the&amp;nbsp;graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used mouse events: Mouse down(identify and ready for moving it), Mouse move (check if the mouse is still down while moving, which is drag) , and Mouse up(Confirmation popup). There might be better ways but this worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Along with disabling the map pan, in mouse down event, you can use&amp;nbsp;Mouse.Capture(null) which releases the mouse down event and mouse move event&amp;nbsp;can be captured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gives some ideas!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 21:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drag-a-graphic-or-feature-using-mouse-wpf-v100-2/m-p/421108#M5070</guid>
      <dc:creator>BikeshMaharjan1</dc:creator>
      <dc:date>2018-03-29T21:55:14Z</dc:date>
    </item>
  </channel>
</rss>

