<?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: Minor problem with Legend control in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16850#M420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a VS2010 bug and unfortunately, we didn't find any workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It only happens in design view of VS2010.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the same bug that VisibleLayers one : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18545-VisibleLayers-error"&gt;http://forums.arcgis.com/threads/18545-VisibleLayers-error&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 07:44:54 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2010-12-03T07:44:54Z</dc:date>
    <item>
      <title>Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16849#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded v2.1 this afternoon, and just added the Legend control into my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At runtime, the legend control works great. But, when I try to view the Design of my XAML page, VS throws an "InvalidCastException". Details are...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to cast object of type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentPrimitiveNode' to type 'Microsoft.Expression.DesignModel.DocumentModel.DocumentCompositeNode'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Microsoft.Expression.DesignModel.InstanceBuilders.ArrayInstanceBuilder.InstantiateTargetType(IInstanceBuilderContext context, ViewNode viewNode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Microsoft.Expression.DesignModel.Core.ViewNodeManager.Instantiate(ViewNode viewNode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, the legend works fine at runtime. In the XAML editor, my XAML code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Border Background="#77919191" BorderThickness="1" CornerRadius="5"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; HorizontalAlignment="Right" VerticalAlignment="Top"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Margin="20" Padding="5" BorderBrush="Black" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:Legend Map="{Binding ElementName=MyMap}" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; LayerIDs="Businesses, Community Facilities, Education, Base Map Layer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; LayerItemsMode="Flat"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Border&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Curiously, the XAML editor underlines the "LayerIDs=.." tag, and the tooltip shows the same cast error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - The control (at runtime) is fantastic by the way - nice job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 23:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16849#M419</guid>
      <dc:creator>ChrisNorth</dc:creator>
      <dc:date>2010-12-02T23:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16850#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a VS2010 bug and unfortunately, we didn't find any workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It only happens in design view of VS2010.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the same bug that VisibleLayers one : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18545-VisibleLayers-error"&gt;http://forums.arcgis.com/threads/18545-VisibleLayers-error&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 07:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16850#M420</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-12-03T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16851#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK.&amp;nbsp; Thanks for the prompt reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 00:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16851#M421</guid>
      <dc:creator>ChrisNorth</dc:creator>
      <dc:date>2010-12-04T00:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16852#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is a VS2010 bug and unfortunately, we didn't find any workaround.&lt;BR /&gt;It only happens in design view of VS2010.&lt;BR /&gt; &lt;BR /&gt;This is the same bug that VisibleLayers one : &lt;A href="http://forums.arcgis.com/threads/18545-VisibleLayers-error"&gt;http://forums.arcgis.com/threads/18545-VisibleLayers-error&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find any workaround for Legend control now? Is it possible to use it in 2.2 API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 12:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16852#M422</guid>
      <dc:creator>OlegLukyanov</dc:creator>
      <dc:date>2011-08-03T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16853#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you find any workaround for Legend control now? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;We didn't find any workaround yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to use it in 2.2 API?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Despite this error in the design view, your code will compile and run correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 13:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16853#M423</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-08-03T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Minor problem with Legend control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16854#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Grrrrr.... this line is breaking my intellisense in VS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 23:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/minor-problem-with-legend-control/m-p/16854#M424</guid>
      <dc:creator>KevinMayo</dc:creator>
      <dc:date>2011-09-25T23:03:07Z</dc:date>
    </item>
  </channel>
</rss>

