<?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: .... about UniqueValueRenderer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139647#M3498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think what Dominique is trying to say is after this line does&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; LayoutRoot.Resources["MyRedFillSymbol"] as FillSymbol;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;return a symbol or null?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely, you have Grid x:Name="LayoutRoot" and in your code-snippet, the symbol resources are defined higher at the UserControl level, which means you might need to do the following instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;uvi.Symbol = &lt;SPAN style="color:&amp;quot;Red&amp;quot;;"&gt;this&lt;/SPAN&gt;.Resources["MyRedFillSymbol"] as FillSymbol; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2011 21:19:19 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-03-29T21:19:19Z</dc:date>
    <item>
      <title>.... about UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139644#M3495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi , i would like to set UniqueValueRenderer by code , to create a thematic map on a layer dinamically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to do this .... non errors but no result on map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me to find be the mistake &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank u GP&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;********************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xaml code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;UserControl.Resources&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol x:Key="MyYellowFillSymbol" Fill="#44FFFF00" BorderBrush="Transparent" BorderThickness="2" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol x:Key="MyRedFillSymbol" Fill="#44FF0000" BorderBrush="Transparent" BorderThickness="2" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/UserControl.Resources&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;behind code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UniqueValueRenderer uvl = new UniqueValueRenderer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uvl.Attribute = "STATE_NAME";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UniqueValueInfo uvi = new UniqueValueInfo();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uvi.Value = "Arizona";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uvi.Symbol = LayoutRoot.Resources["MyRedFillSymbol"] as FillSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uvl.Infos.Add(uvi);&lt;/SPAN&gt;&lt;BR /&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer f = new FeatureLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f.ID = "MyFeatureLayerUnique";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;f.Url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f.Where = "STATE_NAME = 'Arizona'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f.Renderer = uvl as UniqueValueRenderer;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Layers.Add(f);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 14:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139644#M3495</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2011-03-29T14:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: .... about UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139645#M3496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;uvi.Symbol = LayoutRoot.Resources["MyRedFillSymbol"] as FillSymbol;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;What is 'LayoutRoot'? is it the UserControl where the symbols resources are defined?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 15:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139645#M3496</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-03-29T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: .... about UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139646#M3497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi dominique , the answer is yes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 20:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139646#M3497</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2011-03-29T20:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: .... about UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139647#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think what Dominique is trying to say is after this line does&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; LayoutRoot.Resources["MyRedFillSymbol"] as FillSymbol;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;return a symbol or null?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely, you have Grid x:Name="LayoutRoot" and in your code-snippet, the symbol resources are defined higher at the UserControl level, which means you might need to do the following instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;uvi.Symbol = &lt;SPAN style="color:&amp;quot;Red&amp;quot;;"&gt;this&lt;/SPAN&gt;.Resources["MyRedFillSymbol"] as FillSymbol; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 21:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139647#M3498</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-29T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: .... about UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139648#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it's true .... that was the error thanks jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See u &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 06:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/about-uniquevaluerenderer/m-p/139648#M3499</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2011-03-30T06:00:21Z</dc:date>
    </item>
  </channel>
</rss>

