<?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 Setting ClassBreaksInfo in ClassBreaksRenderer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397100#M10265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to dynamically apply a renderer to a feature layer without iterating and applying a symbol to each graphic. Unfortunately, the ClassBreaksRenderer.Classes property (ObservableCollextion&amp;lt;ClassBreaksInfo&amp;gt;) is read only. Does anybody know how to get around this or is not possible to&amp;nbsp; make changes to a class breaks renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 May 2010 16:58:32 GMT</pubDate>
    <dc:creator>ScottBridwell</dc:creator>
    <dc:date>2010-05-19T16:58:32Z</dc:date>
    <item>
      <title>Setting ClassBreaksInfo in ClassBreaksRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397100#M10265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to dynamically apply a renderer to a feature layer without iterating and applying a symbol to each graphic. Unfortunately, the ClassBreaksRenderer.Classes property (ObservableCollextion&amp;lt;ClassBreaksInfo&amp;gt;) is read only. Does anybody know how to get around this or is not possible to&amp;nbsp; make changes to a class breaks renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 16:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397100#M10265</guid>
      <dc:creator>ScottBridwell</dc:creator>
      <dc:date>2010-05-19T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting ClassBreaksInfo in ClassBreaksRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397101#M10266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ClassBreaksRenderer.Classes property is read-only, but the underlying ObservableCollection can be modified :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ClassBreaksRenderer.Classes.Add(myClassBreakInfo) or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ClassBreaksRenderer.Classes.Remove(myClassBreakInfo)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 17:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397101#M10266</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-05-19T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Setting ClassBreaksInfo in ClassBreaksRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397102#M10267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey runtime is good I tried doin it like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;classBreakInfo.MinimumValue = Convert.ToInt32(strLeftWidth.Substring(1, intIndex));
classBreakInfo.MaximumValue = Convert.ToInt32(strRightWidth.Substring(1, intIndex));
classBreakInfo.Symbol = LayoutRoot.Resources["LineSymbolRed"] as Symbol;
MyClassBreaksRenderer.Classes.Add(classBreakInfo);
graphicsLayer.Renderer = MyClassBreaksRenderer;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but my graphic layer is not returning to the map what am I missing here ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397102#M10267</guid>
      <dc:creator>SantoshV</dc:creator>
      <dc:date>2021-12-11T18:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting ClassBreaksInfo in ClassBreaksRenderer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397103#M10268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's hard to tell where the problem could be without knowing how the ClassBreaksRenderer was created. It might be that the Attribute of ClassBreaksRenderer does not match an OutField in your FeatureLayer or the symbol does not match the geometry type of the layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The equivalent code-behind of the XAML in this sample is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void FeatureLayer_Initialized(object sender, System.EventArgs e)
{
 FeatureLayer layer = sender as FeatureLayer;&amp;nbsp;&amp;nbsp; 
 ClassBreaksRenderer classBreaksRenderer = new ClassBreaksRenderer()
 {
&amp;nbsp; Attribute = "POP07_SQMI"
 };
 classBreaksRenderer.Classes.Add(
&amp;nbsp; new ClassBreakInfo() 
&amp;nbsp; { 
&amp;nbsp;&amp;nbsp; MinimumValue = 0d, 
&amp;nbsp;&amp;nbsp; MaximumValue = 50d, 
&amp;nbsp;&amp;nbsp; Symbol = this.LayoutRoot.Resources["LowFillSymbol"] as Symbol
&amp;nbsp; }
 );

 classBreaksRenderer.Classes.Add(
&amp;nbsp; new ClassBreakInfo()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; MinimumValue = 50d,
&amp;nbsp;&amp;nbsp; MaximumValue = 200d,
&amp;nbsp;&amp;nbsp; Symbol = this.LayoutRoot.Resources["MediumFillSymbol"] as Symbol
&amp;nbsp; }
 );

 classBreaksRenderer.Classes.Add(
&amp;nbsp; new ClassBreakInfo()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; MinimumValue = 200d,
&amp;nbsp;&amp;nbsp; MaximumValue = 5000d,
&amp;nbsp;&amp;nbsp; Symbol = this.LayoutRoot.Resources["HighFillSymbol"] as Symbol
&amp;nbsp; }
 );
 layer.Renderer = classBreaksRenderer;&amp;nbsp;&amp;nbsp; 
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/setting-classbreaksinfo-in-classbreaksrenderer/m-p/397103#M10268</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:09:41Z</dc:date>
    </item>
  </channel>
</rss>

