<?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: MapView in ContentPresenter bug? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118667#M1315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still curious about some input from ESRI on this. Is there a better place to report bugs than here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MapViewBug.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/108513_MapViewBug.PNG" style="width: 620px; height: 351px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 19:26:02 GMT</pubDate>
    <dc:creator>BjørnarSundsbø</dc:creator>
    <dc:date>2015-06-05T19:26:02Z</dc:date>
    <item>
      <title>MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118664#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While playing around with the MVVM approach for the controls, I discovered something I believe is a bug. I was trying to display multiple viewmodels where the DataTemplate contains a MapView in an itemscontrol (TabControl), I discovered that the map is not displayed. I get an empty map, which is of no real use. It is just an empty control with the ESRI logo. I get the same result using a ContentPresenter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following should be sufficient to reproduce. &lt;STRONG&gt;SomeClass&lt;/STRONG&gt; is just an empty class in this example. Having a map property on this class, and binding the MapView.Map to that property doesn't work either.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;Grid&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid.ColumnDefinitions&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ColumnDefinition Width=".5*" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ColumnDefinition Width=".5*" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid.ColumnDefinitions&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView Grid.Column="0"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- This map works --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer ID="h" ServiceUri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentPresenter Grid.Column="1"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- This map does not work --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentPresenter.ContentTemplate&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;lt;DataTemplate DataType="viewModels:SomeClass" &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;lt;esri:MapView&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;lt;esri:Map&amp;gt;
&lt;SPAN&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;lt;esri:ArcGISTiledMapServiceLayer ID="h" ServiceUri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&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;lt;/esri:Map&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;lt;/esri:MapView&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;lt;/DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentPresenter.ContentTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentPresenter.Content&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;lt;viewModels:SomeClass /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentPresenter.Content&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentPresenter&amp;gt;
&amp;lt;/Grid&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have to admit that this is rather inconvenient for what I need to do in my application, so I was wondering if there is a suggested workaround, and if this is possible to fix somewhat shortly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118664#M1312</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2021-12-11T06:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118665#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to create a partially workaround by putting my MapView inside of a UserControl (MapViewHost), and reference &amp;lt;MapViewHost/&amp;gt; in the DataTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why this works, but it could be related to what happens inside of InitializeComponents?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something that will be addressed in the future, &lt;A href="https://community.esri.com/migrated-users/4061"&gt;Michael Branscomb&lt;/A&gt;? I've gotten it sorted out for now, but it would be practical to be able to avoid such a workaround, even if I believe I would have ended up with a similar solution eventually, as I would have wanted to separate the map UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this does NOT work when the map is created in my viewmodel, and bound to the MapView. If I do I get an empty map grid, operations work, legend and scale line displays as they should, adding features work, but the map itself is not rendered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 20:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118665#M1313</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2015-04-23T20:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118666#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any information from ESRI on this topic?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 22:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118666#M1314</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2015-05-08T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118667#M1315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still curious about some input from ESRI on this. Is there a better place to report bugs than here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MapViewBug.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/108513_MapViewBug.PNG" style="width: 620px; height: 351px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 19:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118667#M1315</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2015-06-05T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118668#M1316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a repro for this so I can have a look? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Antti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:18:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118668#M1316</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-06-10T09:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118669#M1317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached screenshot and Reproducable example to the previous post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118669#M1317</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2015-06-10T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118670#M1318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't see attachement on the view earlier. I'll have a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118670#M1318</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-06-11T11:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118671#M1319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can get this reproduced and created new issue for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118671#M1319</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-06-11T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: MapView in ContentPresenter bug?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118672#M1320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attachment was added after you requested it, so it is reasonable that you did not see it before. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great that you have been able to reproduce. When you resolve the issue, a possible workaround I can use until the release of the bugfix, that would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-in-contentpresenter-bug/m-p/118672#M1320</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2015-06-11T12:14:42Z</dc:date>
    </item>
  </channel>
</rss>

