<?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 Legend Initialize Method in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-initialize-method/m-p/613232#M15735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use the Legend programatically before it has been viewed by the user.&amp;nbsp; But it's LayerItem count = 0 until it's been exposed to the user in the application.&amp;nbsp; Is there some other way to initialize the Legend object for use in the code behind?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Aug 2011 18:48:29 GMT</pubDate>
    <dc:creator>SeanFairhurst</dc:creator>
    <dc:date>2011-08-07T18:48:29Z</dc:date>
    <item>
      <title>Legend Initialize Method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-initialize-method/m-p/613232#M15735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use the Legend programatically before it has been viewed by the user.&amp;nbsp; But it's LayerItem count = 0 until it's been exposed to the user in the application.&amp;nbsp; Is there some other way to initialize the Legend object for use in the code behind?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 18:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-initialize-method/m-p/613232#M15735</guid>
      <dc:creator>SeanFairhurst</dc:creator>
      <dc:date>2011-08-07T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Legend Initialize Method</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-initialize-method/m-p/613233#M15736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The template of a control is only applied whether the control is in the visual tree and is visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the behavior you mentionned is normal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround might be to set the legend as visible by default and then set it to 'Collapsed' on event 'Loaded'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 07:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-initialize-method/m-p/613233#M15736</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-08-30T07:06:33Z</dc:date>
    </item>
  </channel>
</rss>

