<?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: Hide a graphic? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637774#M16404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would just remove the graphic itself (Graphics.Remove) from the Graphics collection, hold onto it and then add it back when needed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 04:48:30 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2012-06-27T04:48:30Z</dc:date>
    <item>
      <title>Hide a graphic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637772#M16402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to temporarily remove a graphic from view?&amp;nbsp; similar in the way that GraphicsLayer.Visiblity = false acts&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 19:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637772#M16402</guid>
      <dc:creator>JoshPorter</dc:creator>
      <dc:date>2012-06-26T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a graphic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637773#M16403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Setting Geometry to nothing seems to do the trick, then when i set it back to what it was it is back on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this sound like a good plan?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 20:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637773#M16403</guid>
      <dc:creator>JoshPorter</dc:creator>
      <dc:date>2012-06-26T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a graphic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637774#M16404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would just remove the graphic itself (Graphics.Remove) from the Graphics collection, hold onto it and then add it back when needed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 04:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637774#M16404</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2012-06-27T04:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hide a graphic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637775#M16405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I implemented both in a test project, but it seems easier to extend the Graphic class and add a property much like this one, &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; Public Property Visible() As Boolean &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return Me.Geometry IsNot Nothing &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal value As Boolean) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If value Then &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; Me.Geometry = mStoredGeometry &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else &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; If Me.Geometry IsNot Nothing Then mStoredGeometry = Me.Geometry &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; Me.Geometry = Nothing &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set &amp;nbsp;&amp;nbsp;&amp;nbsp; End Property&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this in a layer using a Flarecluster, and the cluster updated correctly when this property was used. It decremented the count when this property was set to false, and included this Graphic when Visible was set to true. The same is true when maintaining a list of the hidden graphics, but this seems more neat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 16:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-a-graphic/m-p/637775#M16405</guid>
      <dc:creator>JoshPorter</dc:creator>
      <dc:date>2012-06-27T16:36:44Z</dc:date>
    </item>
  </channel>
</rss>

