<?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: Detecting Addin Visibility in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406627#M2485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Erin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for that info. It's the answer I expected but not the answer I wanted and hoped for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 17:28:11 GMT</pubDate>
    <dc:creator>BrianKowalski</dc:creator>
    <dc:date>2012-10-04T17:28:11Z</dc:date>
    <item>
      <title>Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406624#M2482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an Extension that needs to handle MapClick Events if (and only if) one or more of its associated Addins are Visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is the DockWindow.Visible Property ALWAYS indicates Visible even when the Addin window is Closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reliable way to detect when a DockWindow is simply Visible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 21:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406624#M2482</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-01T21:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406625#M2483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If there is no way to reliably detect "Visible" there are ways to use a couple of Events to infer Visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Is true when the Addin is Created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private bool _isVisible = true; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Fires when the Addin is Hidden - But ONLY when it is hidden&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private void SilcObjectBrowser_VisibleChanged(object sender, EventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Even though the Addin is now hidden, this.Visible == true!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; _isVisible = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Will only fire when the Addin is Visible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private void SilcObjectBrowser_Paint(object sender, PaintEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; _isVisible = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //Return the current state of _isVisible&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public bool IsVisible { get { return _isVisible; } }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a start. BUT I would actually like to be able to reliably detect when an Addin is *Active*. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an Addin. I click the Button to create and show it: it's now Visible AND *Active*. I Dock it with the Content Window as a tab. So now I have my Addin and the Contents Window on the same Dock Control each having a separate tab. If I click the Contents Window tab, my Addin is not Visible (and the above code will detect this). BUT, it is *Active* and I need to know that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a straight forward way to detect *Active*? If not, is there a not so straight forward way, like using Events such as above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 22:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406625#M2483</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-01T22:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406626#M2484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you're trying to accomplish more complex functionality involving cross-form/window behavior and dependencies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While the ArcGIS Explorer API is powerful and has a lot of wonderful features, we found it difficult (if not impossible) to implement some very simple functional requirements with Dock Windows.&amp;nbsp; For example, there is no apparent way to programmatically open a Dock Window.&amp;nbsp; This led to a tradeoff in our own project where we eventually decided to go with Button add-ins that opened plain Win Forms.&amp;nbsp; We lost the benefits of Dock Windows, but many of our key workflows were simply not possible if programmatically opening our custom windows/forms was not an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, all of that to say that you may have to consider either:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) Using Button add-ins that open win forms instead of using the Dock Window add-ins for your custom UIs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Stick with Dock Windows but rethink your functional requirements to get around the limitations of the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a pretty robust implementation using Win Forms in ArcGIS Explorer, so I can offer more specific technical advice if you decide to go with this same approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 15:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406626#M2484</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2012-10-04T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406627#M2485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Erin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for that info. It's the answer I expected but not the answer I wanted and hoped for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406627#M2485</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-04T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406628#M2486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the limitation of the current framework that AGX is built upon. We'll listen to all your feedback when we start designing new AGX.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406628#M2486</guid>
      <dc:creator>AndreiIvanov</dc:creator>
      <dc:date>2012-10-05T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Addin Visibility</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406629#M2487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andriy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the info. I would love to see more access and control over DockWindows in future releases. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like other companies would like to see it as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/detecting-addin-visibility/m-p/406629#M2487</guid>
      <dc:creator>BrianKowalski</dc:creator>
      <dc:date>2012-10-05T16:53:11Z</dc:date>
    </item>
  </channel>
</rss>

