<?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 MVVM for Graphics Overlays in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72914#M777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most WPF .Net 100.X samples use a Static Resource of the Map object declared in the xaml file. Then the Map property of the MapView control is set to Static Resource instance. I would like to do the same for Graphics overlays but this does not seem to be possible. The exposed Overlays property is for an unrelated Items control. Sure, I can use the somewhat confusing approach as is demonstrated in the "Controller" samples (demonstrates injecting a "weak" reference to the MapView into the view model to control, for example, the map viewpoint from the ViewModel), but is there no more straight forward&amp;nbsp; way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Dec 2018 19:57:09 GMT</pubDate>
    <dc:creator>CharlesRoberts1</dc:creator>
    <dc:date>2018-12-08T19:57:09Z</dc:date>
    <item>
      <title>MVVM for Graphics Overlays</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72914#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most WPF .Net 100.X samples use a Static Resource of the Map object declared in the xaml file. Then the Map property of the MapView control is set to Static Resource instance. I would like to do the same for Graphics overlays but this does not seem to be possible. The exposed Overlays property is for an unrelated Items control. Sure, I can use the somewhat confusing approach as is demonstrated in the "Controller" samples (demonstrates injecting a "weak" reference to the MapView into the view model to control, for example, the map viewpoint from the ViewModel), but is there no more straight forward&amp;nbsp; way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2018 19:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72914#M777</guid>
      <dc:creator>CharlesRoberts1</dc:creator>
      <dc:date>2018-12-08T19:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: MVVM for Graphics Overlays</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72915#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approach I'd suggest is you create a view model that contains both a Map and a GraphicsOverlayCollection, then set the datacontext to that viewmodel. Then you'll merely bind the two to the mapview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;esri:MapView Map="{Binding Map}" GraphicsOverlays="{Binding Overlays}" /&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 17:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72915#M778</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-12-10T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: MVVM for Graphics Overlays</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72916#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, of course. I was thrown off by the Overlays property and did not notice GraphicsOverlays.&lt;/P&gt;&lt;P&gt;Thank you for steering me in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mvvm-for-graphics-overlays/m-p/72916#M779</guid>
      <dc:creator>CharlesRoberts1</dc:creator>
      <dc:date>2018-12-10T18:12:26Z</dc:date>
    </item>
  </channel>
</rss>

