<?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 Disabling a tool icon from code behind in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/disabling-a-tool-icon-from-code-behind/m-p/532392#M13660</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've placed two tools for next and previous extent in the layer configuration toolbar. The tools work fine but I'd like to disable each button when it's not possible to go to any other extent. How would I go about setting the HitTest and opacity for an icon located here? I have a DefaultIcon defined in the code for my tool, and I've added the tool (with the same icon path) in the config file tools.xml. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ESRI tools named RefreshLayerCommand and GoToLayerCommand have this functionality. I've been looking for the source code but I can't seem to find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers in the right direction would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Carlsson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 08:01:42 GMT</pubDate>
    <dc:creator>JohanCarlsson</dc:creator>
    <dc:date>2012-10-15T08:01:42Z</dc:date>
    <item>
      <title>Disabling a tool icon from code behind</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/disabling-a-tool-icon-from-code-behind/m-p/532392#M13660</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've placed two tools for next and previous extent in the layer configuration toolbar. The tools work fine but I'd like to disable each button when it's not possible to go to any other extent. How would I go about setting the HitTest and opacity for an icon located here? I have a DefaultIcon defined in the code for my tool, and I've added the tool (with the same icon path) in the config file tools.xml. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ESRI tools named RefreshLayerCommand and GoToLayerCommand have this functionality. I've been looking for the source code but I can't seem to find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers in the right direction would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan Carlsson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/disabling-a-tool-icon-from-code-behind/m-p/532392#M13660</guid>
      <dc:creator>JohanCarlsson</dc:creator>
      <dc:date>2012-10-15T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling a tool icon from code behind</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/disabling-a-tool-icon-from-code-behind/m-p/532393#M13661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, the answer was right in front of me. If it would help any other beginners, just use the CanExecute handler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/disabling-a-tool-icon-from-code-behind/m-p/532393#M13661</guid>
      <dc:creator>JohanCarlsson</dc:creator>
      <dc:date>2012-10-15T08:10:48Z</dc:date>
    </item>
  </channel>
</rss>

