<?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 and Drop onto Map in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660574#M3365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried getting the mouse position relative to the map, and then using ScreenToMap to get the map location, when in the drop event?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var mousePosition = Mouse.GetPosition(PART_Map);
var mapPoint = PART_Map.ScreenToMap(mousePosition);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:56:52 GMT</pubDate>
    <dc:creator>BjørnarSundsbø</dc:creator>
    <dc:date>2021-12-12T03:56:52Z</dc:date>
    <item>
      <title>Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660573#M3364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking for advice on implementing drag &amp;amp; drop onto the WPF map control. My goal is to drag from a list of items, and drop on the map to create a new graphic/feature at the drop location. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map has Drop and PreviewDrop events, but neither provide the map/mouse coordinates of the drop event. Am I missing something in the events? Both have DragEventArgs as the parameter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I really need is the mouse's map position when the drop happens. With that in mind, I also tried to get mouse move events, but they don't seem to carry any position either, only MouseEventArgs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Am I missing something obvious?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. ArcGIS Runtime 10.1.1, but I can upgrade to 10.2 if there is something that will help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660573#M3364</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-01-22T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660574#M3365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried getting the mouse position relative to the map, and then using ScreenToMap to get the map location, when in the drop event?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var mousePosition = Mouse.GetPosition(PART_Map);
var mapPoint = PART_Map.ScreenToMap(mousePosition);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660574#M3365</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2021-12-12T03:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660575#M3366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I get to PART_Map? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried getting the mouse position relative to the map, and then using ScreenToMap to get the map location, when in the drop event?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var mousePosition = Mouse.GetPosition(PART_Map);
var mapPoint = PART_Map.ScreenToMap(mousePosition);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660575#M3366</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2021-12-12T03:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660576#M3367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How do I get to PART_Map?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about the confusion. PART_Map is the Map control itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660576#M3367</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-01-24T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660577#M3368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! It's kind of working, but I think there might be a problem with offset or projection because my coordinates are not right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I get when adding using the Editor method. This is the correct point ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Point[X=-10729734.0395236, Y=5233362.65677612, WKID=102100]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are the values I'm getting with the method described above for the same point ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Point[X=-12276503.6815948, Y=6334347.01772725, WKID=102100] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts or suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 14:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660577#M3368</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-01-25T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660578#M3369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still looking for a solution for this. I also added the following lines without any real effect:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_map.WrapAroundIsActive)
&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; mapPoint = Geometry.NormalizeCentralMeridian(mapPoint) as MapPoint;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660578#M3369</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2021-12-12T03:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660579#M3370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing that could affect this (cant remember what versions of the SDK this was an issue) is that if your map is not full screen ie. you have another element on left/top of the map? If so, then the point could be that many pixels in wrong place.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 08:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660579#M3370</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-01-30T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660580#M3371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting ... After testing this a little more, it appears that the drops are accumulating at what would be the top, left corner of the screen. If I drop in multiple locations, they all stack in that same spot. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice on how to correct the offset? Should I be looking at some combination of the window's upper, left corner and map's upper, left corner? Or is there more to it than that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has it been corrected in 10.2? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One thing that could affect this (cant remember what versions of the SDK this was an issue) is that if your map is not full screen ie. you have another element on left/top of the map? If so, then the point could be that many pixels in wrong place.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 14:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660580#M3371</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-01-30T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660581#M3372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did another test, and this line always returns the upper, left corner of the map control with respect to the screen, but in negative numbers. So if the map control is positioned at 100, 100 on the screen, then Mouse.GetPosition would return -100, -100.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same value is returned regardless of where I drop on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var mousePosition = Mouse.GetPosition(_map);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660581#M3372</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-01-30T15:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660582#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Persistence pays off. The problem was the call to Mouse.GetPosition. It should be DragEventArgs.GetPosition. Here is the complete solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&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; private void Drop(object 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; var args = e as DragEventArgs;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (args == 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; return;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mousePosition = args.GetPosition(_map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapPoint = _map.ScreenToMap(mousePosition);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_map.WrapAroundIsActive)
&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; mapPoint = Geometry.NormalizeCentralMeridian(mapPoint) as MapPoint;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new Graphic();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic .Geometry = mapPoint;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyLayer.Graphics.Add(graphic );
&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;I have this wired-up using a Command &amp;amp; ViewModel. I can post that part if anyone is interested, just let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660582#M3373</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2021-12-12T03:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660583#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have this wired-up using a Command &amp;amp; ViewModel. I can post that part if anyone is interested, just let me know.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, that would awesome. But guess what would be even more, small complete sample with MVVM and Drag'n'drop :cool:.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 07:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660583#M3374</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-01-31T07:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660584#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will put together a sample and post it soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Oh, that would awesome. But guess what would be even more, small complete sample with MVVM and Drag'n'drop :cool:.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 04:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660584#M3375</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-02-11T04:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660585#M3376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample project that you download: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/keithgemeinhart/ArcGis.Wpf.DragDropDemo" rel="nofollow" target="_blank"&gt;https://github.com/keithgemeinhart/ArcGis.Wpf.DragDropDemo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A couple of key points .... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the GalaSoft MVVM Light library to get an implementation of EventToCommand. The provides a mechanism for mapping an event to a command in the view model. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;i:Interaction.Triggers &amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;i:EventTrigger EventName="Loaded"&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cmd:EventToCommand Command="{Binding MapLoadedCommand, Source={StaticResource DragDropViewModel}}" PassEventArgsToCommand="True"/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;/i:EventTrigger&amp;gt; &amp;lt;/i:Interaction.Triggers&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This maps the Loaded event on the map to the MapLoadedCommand in the DragDropViewModel. That's a key event because we need a means for getting a map reference into the view model. So my solution was to capture the map reference as a parameter of the map's Loaded event. Here is the implementation in the view model. The last line in the method extracts the map reference from the RoutedEventArgs Source property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private void MapLoaded(object parameter) { &amp;nbsp;&amp;nbsp;&amp;nbsp; // See if the event sent the map in the event args &amp;nbsp;&amp;nbsp;&amp;nbsp; var p1 = parameter as System.Windows.RoutedEventArgs; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (p1 == null) &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new NullReferenceException("Cannot capture map reference."); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; _map = p1.Source as Map; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any questions, just let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 04:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660585#M3376</guid>
      <dc:creator>KeithGemeinhart</dc:creator>
      <dc:date>2014-02-22T04:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onto Map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660586#M3377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good sample Keith.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More of these guys!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/drag-and-drop-onto-map/m-p/660586#M3377</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-02-24T09:19:34Z</dc:date>
    </item>
  </channel>
</rss>

