<?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 legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1085529#M10331</link>
    <description>&lt;P&gt;I have legendinfos returned from layer.GetLegendInfosAsync() and works fine in iOS (release and debug builds) and UWP (debug build) but not UWP in a release build.&lt;/P&gt;&lt;P&gt;Any one else experiencing this issue?&amp;nbsp; We are using 100.10 runtime for Xamarin Forms.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Farrow&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 22:05:03 GMT</pubDate>
    <dc:creator>PaulFarrow</dc:creator>
    <dc:date>2021-08-03T22:05:03Z</dc:date>
    <item>
      <title>legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1085529#M10331</link>
      <description>&lt;P&gt;I have legendinfos returned from layer.GetLegendInfosAsync() and works fine in iOS (release and debug builds) and UWP (debug build) but not UWP in a release build.&lt;/P&gt;&lt;P&gt;Any one else experiencing this issue?&amp;nbsp; We are using 100.10 runtime for Xamarin Forms.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Farrow&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 22:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1085529#M10331</guid>
      <dc:creator>PaulFarrow</dc:creator>
      <dc:date>2021-08-03T22:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1086581#M10337</link>
      <description>&lt;P&gt;To expand on what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215260"&gt;@PaulFarrow&lt;/a&gt;&amp;nbsp;is saying. We utilize the Toolkit SymbolDisplay like this:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;&lt;/SPAN&gt;forms&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;SymbolDisplay&lt;SPAN class="s2"&gt; Symbol&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;="{&lt;/SPAN&gt;Binding&lt;SPAN class="s2"&gt; Symbol&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;}" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;This works perfectly in iOS, Android in debug and full builds. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;UWP also works when running in debug but&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;when we do a real Release UWP build, the symbols never display. The&amp;nbsp;&lt;SPAN&gt;layer.GetLegendInfosAsync() call definitely returns symbols and we even put code in to replace null symbols with a SimpleMarkerSymbol if that property is null (there were not any but we are to that point).&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472929"&gt;@MikeBranscomb&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464411"&gt;@SomeGISGuy&lt;/a&gt;&amp;nbsp;- could really use your help on this one if you have any ideas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1086581#M10337</guid>
      <dc:creator>johnselkirkssp</dc:creator>
      <dc:date>2021-08-06T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1086970#M10340</link>
      <description>&lt;P&gt;John, Paul,&lt;/P&gt;&lt;P&gt;If you run the UWP Toolkit Samples in Release mode do the LayerLegend/Legend samples display legend images?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 20:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1086970#M10340</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-08-08T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087083#M10342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3014"&gt;@MichaelBranscomb&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for responding.&lt;/P&gt;&lt;P&gt;The samples also fail between Debug and Release (video attached).&lt;/P&gt;&lt;P&gt;The only thing I did to the code currently in main was to change the &amp;lt;UseNugetPackage&amp;gt;100.11.0&amp;lt;/UseNugetPackage&amp;gt; in the Directory.Build.props.&lt;/P&gt;&lt;P&gt;I've attached a (badly edited!) video to show both Release and then Debug builds of the samples running.&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087083#M10342</guid>
      <dc:creator>johnselkirkssp</dc:creator>
      <dc:date>2021-08-09T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087107#M10343</link>
      <description>&lt;P&gt;John wanted me to post the screen shots from the legend sample.&amp;nbsp; Here you can see in pure release mode which doesn't load the mapview - we had this issue also and overcame that by telling the xamarin forms init method about the mapview types.&amp;nbsp;&amp;nbsp; I made the same change to the latest toolkit code and now you can see the map load but no symbols in the legend.&amp;nbsp; I did try to load the symbol types the same way but to no avail.&lt;/P&gt;&lt;P&gt;Screenshots attached - names explain what they are.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:47:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087107#M10343</guid>
      <dc:creator>PaulFarrow</dc:creator>
      <dc:date>2021-08-09T14:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087253#M10344</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472599"&gt;@johnselkirkssp&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215260"&gt;@PaulFarrow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Work around for .NET native compilation issue where ArcGIS Runtime assemblies 
// get optimized away: Explicitly define the assemblies that are used. 
List&amp;lt;Assembly&amp;gt; assembliesToInclude = new List&amp;lt;Assembly&amp;gt;();
assembliesToInclude.Add(typeof(Esri.ArcGISRuntime.UI.Controls.MapView).GetTypeInfo().Assembly);
assembliesToInclude.Add(typeof(Esri.ArcGISRuntime.Toolkit.Xamarin.Forms.SymbolDisplay).GetTypeInfo().Assembly);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;8/11/2021 Edited the code to remove the reference to Map, leaving just the references that contain customer renderers.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 18:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087253#M10344</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-08-11T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087277#M10345</link>
      <description>Looks like adding the Xamarin.forms.symboldisplay did it.&lt;BR /&gt;Thanks&lt;BR /&gt;Cheers&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2021 21:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087277#M10345</guid>
      <dc:creator>PaulFarrow</dc:creator>
      <dc:date>2021-08-09T21:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087279#M10346</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3014"&gt;@MichaelBranscomb&lt;/a&gt;&amp;nbsp;- we owe you a beer or 3!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 21:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1087279#M10346</guid>
      <dc:creator>johnselkirkssp</dc:creator>
      <dc:date>2021-08-09T21:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: legendinfo returned from layer.GetLegendInfosAsync() appears to be blank in UWP release build</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1088220#M10352</link>
      <description>&lt;P&gt;Not at all, glad you raised this - there's not a lot of doc on it, so it's good to establish a consistent pattern in all our public sample code.&lt;/P&gt;&lt;P&gt;It turns out we've had the workaround in our regular samples viewer for some time but hadn't applied it to the toolkit samples. We've done that now too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/74397e25e1fb5bad16cb4a8ffca6fa066c9b3292/src/Forms/UWP/App.xaml.cs#L65" target="_blank"&gt;https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/74397e25e1fb5bad16cb4a8ffca6fa066c9b3292/src/Forms/UWP/App.xaml.cs#L65&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-toolkit-dotnet/blob/7ee28956aed504aeabc842ea697cca6e2bbec283/src/Samples/Toolkit.Samples.Forms/Toolkit.Samples.Forms.UWP/App.xaml.cs#L56" target="_blank"&gt;https://github.com/Esri/arcgis-toolkit-dotnet/blob/7ee28956aed504aeabc842ea697cca6e2bbec283/src/Samples/Toolkit.Samples.Forms/Toolkit.Samples.Forms.UWP/App.xaml.cs#L56&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently also found this blog post:&amp;nbsp;&lt;A href="https://tomsoderling.github.io/what-every-Xamarin.Froms-developer-needs-to-know-about-UWP/" target="_blank"&gt;https://tomsoderling.github.io/what-every-Xamarin.Froms-developer-needs-to-know-about-UWP/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 00:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-returned-from-layer-getlegendinfosasync/m-p/1088220#M10352</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-08-12T00:33:02Z</dc:date>
    </item>
  </channel>
</rss>

