<?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 ArcGISRuntime.Toolkit.WPF legend not showing the symbols in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1645368#M13637</link>
    <description>&lt;P&gt;Hi, I'm new to ArcGIS and I'm trying to make use of the legend control from Esri.ArcGISRuntime.Toolkit.WPF, 200.8.0.&amp;nbsp; The map shows the symbols as expected, but the legend only shows the names of the layer and not the symbols.&amp;nbsp; I have 21 symbols defined in the ORDERS style, and 31 symbols defined for the USERS style.&lt;/P&gt;&lt;P&gt;XAML for the map and legend:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;esri:MapView x:Name="MainMapView" 
              Grid.Row="1"
              Map="{Binding Map, Source={StaticResource MapViewModel}}" 
              GraphicsOverlays="{Binding GraphicsOverlays, Source={StaticResource MapViewModel}}" &amp;gt;            
&amp;lt;/esri:MapView&amp;gt;

&amp;lt;esri:Legend x:Name="MainLegend" Grid.Row="1" GeoView="{Binding ElementName=MainMapView}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Visibility="Visible"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code creating the feature layer:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;_geodatabase = await Geodatabase.OpenAsync(mobileGdbPathName);

foreach (var table in _geodatabase.GeodatabaseFeatureTables)
{
    if (table.TableName.Equals(MY_FEATURE_LAYER_NAME))
    {
        await table.LoadAsync();
        _myFeatureLayer = new FeatureLayer(table);
        DictionarySymbolStyle myLocalStyle = 
            await DictionarySymbolStyle.CreateFromFileAsync(myStylxPath);
        _myFeatureLayer.Renderer = new DictionaryRenderer(myLocalStyle);
        this.Map.OperationalLayers.Add(_myFeatureLayer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case you are confused by the "WinFormMapCtrl" title, this is just a WinForm hosting the WPF map control.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelChau1_1-1756159109107.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139299i7BB3939F2E7AAEA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelChau1_1-1756159109107.png" alt="MichaelChau1_1-1756159109107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2025 22:10:20 GMT</pubDate>
    <dc:creator>MichaelChau1</dc:creator>
    <dc:date>2025-08-25T22:10:20Z</dc:date>
    <item>
      <title>ArcGISRuntime.Toolkit.WPF legend not showing the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1645368#M13637</link>
      <description>&lt;P&gt;Hi, I'm new to ArcGIS and I'm trying to make use of the legend control from Esri.ArcGISRuntime.Toolkit.WPF, 200.8.0.&amp;nbsp; The map shows the symbols as expected, but the legend only shows the names of the layer and not the symbols.&amp;nbsp; I have 21 symbols defined in the ORDERS style, and 31 symbols defined for the USERS style.&lt;/P&gt;&lt;P&gt;XAML for the map and legend:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;esri:MapView x:Name="MainMapView" 
              Grid.Row="1"
              Map="{Binding Map, Source={StaticResource MapViewModel}}" 
              GraphicsOverlays="{Binding GraphicsOverlays, Source={StaticResource MapViewModel}}" &amp;gt;            
&amp;lt;/esri:MapView&amp;gt;

&amp;lt;esri:Legend x:Name="MainLegend" Grid.Row="1" GeoView="{Binding ElementName=MainMapView}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Visibility="Visible"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code creating the feature layer:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;_geodatabase = await Geodatabase.OpenAsync(mobileGdbPathName);

foreach (var table in _geodatabase.GeodatabaseFeatureTables)
{
    if (table.TableName.Equals(MY_FEATURE_LAYER_NAME))
    {
        await table.LoadAsync();
        _myFeatureLayer = new FeatureLayer(table);
        DictionarySymbolStyle myLocalStyle = 
            await DictionarySymbolStyle.CreateFromFileAsync(myStylxPath);
        _myFeatureLayer.Renderer = new DictionaryRenderer(myLocalStyle);
        this.Map.OperationalLayers.Add(_myFeatureLayer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case you are confused by the "WinFormMapCtrl" title, this is just a WinForm hosting the WPF map control.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelChau1_1-1756159109107.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139299i7BB3939F2E7AAEA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelChau1_1-1756159109107.png" alt="MichaelChau1_1-1756159109107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 22:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1645368#M13637</guid>
      <dc:creator>MichaelChau1</dc:creator>
      <dc:date>2025-08-25T22:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntime.Toolkit.WPF legend not showing the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1645395#M13638</link>
      <description>&lt;P&gt;If I'm not mistaken, Legend isn't supported for a DictionaryRenderer. Try calling &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Layer.GetLegendInfosAsync.html#Esri_ArcGISRuntime_Mapping_Layer_GetLegendInfosAsync" target="_self"&gt;_myFeatureLayer.GetLegendInfosAsync()&lt;/A&gt; and see if it returns anything.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 23:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1645395#M13638</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-08-25T23:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISRuntime.Toolkit.WPF legend not showing the symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1646602#M13640</link>
      <description>&lt;P&gt;I guess the answer is no?&amp;nbsp; What options do I have?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelChau1_1-1756407348038.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139607i55765DA9B619D4EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelChau1_1-1756407348038.png" alt="MichaelChau1_1-1756407348038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 18:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisruntime-toolkit-wpf-legend-not-showing-the/m-p/1646602#M13640</guid>
      <dc:creator>MichaelChau1</dc:creator>
      <dc:date>2025-08-28T18:58:10Z</dc:date>
    </item>
  </channel>
</rss>

