<?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: A Help Box for Buttons in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-help-box-for-buttons/m-p/610162#M15664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would probably create a new type of button class (inherits from Button), and give it a boolean property to say whether its in "help mode". Then bind this property to help checkbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Override the Click method, and raise the "HelpClick" event instead of the Click event. Alternatively you could have the button pop up the help window, and have a help description property on the button as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 15:40:46 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2010-07-19T15:40:46Z</dc:date>
    <item>
      <title>A Help Box for Buttons</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-help-box-for-buttons/m-p/610161#M15663</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 have a project that has some menus, and in it a lot of buttons. I use a service tooltip to show Help, but now I need to create a function that will switch the buttons function to show a help box with info on the clicked button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Xaml, here's an example of a Button:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Button x:Name="btnToggleTOC" Style="{StaticResource MenuButtonStyle}"&amp;nbsp; ToolTipService.ToolTip="Lista Camadas do Mapa" Width="45" Height="40" Click="mostraPainelEsquerdo_Click"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;lt;Image Source="Images/layers.png" /&amp;gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Button&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and here's it's Function on C#:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void mostraPainelEsquerdo_Click(object sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]if (painelEsquerdo.Visibility == Visibility.Collapsed)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]painelEsquerdo.Visibility = Visibility.Visible;[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]painelEsquerdo.Visibility = Visibility.Collapsed;[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT][/INDENT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a screenshot of one of the menus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;IMG src="http://a.imageshack.us/img683/7485/menukov.th.jpg" /&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, here's my question: How can I use a function to change the next mouse action of EVERY button to show a help box with operational info, that will be diferent for each button, and without getting my code dirty? This Function will the activated once I click the (?) button shown on the screenshot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 13:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-help-box-for-buttons/m-p/610161#M15663</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2010-07-14T13:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: A Help Box for Buttons</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-help-box-for-buttons/m-p/610162#M15664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would probably create a new type of button class (inherits from Button), and give it a boolean property to say whether its in "help mode". Then bind this property to help checkbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Override the Click method, and raise the "HelpClick" event instead of the Click event. Alternatively you could have the button pop up the help window, and have a help description property on the button as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 15:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-help-box-for-buttons/m-p/610162#M15664</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-19T15:40:46Z</dc:date>
    </item>
  </channel>
</rss>

