<?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 dockpane based on state in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813867#M2452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma, this is exactly what I'm trying to solve.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 14:59:35 GMT</pubDate>
    <dc:creator>BenoitPronovost1</dc:creator>
    <dc:date>2017-02-09T14:59:35Z</dc:date>
    <item>
      <title>Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813865#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dockpane that displays selected items in a data grid and allows the user to select a row and open it's asset information in SAP.&amp;nbsp;After checking if the SAP connexion is valid I set a state. I've set the condition on the button that opens the dockpane, which works fine, but if the pane is already open, it remains open in the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it is&amp;nbsp;possible to close a dockpane or disable it's controls based on a&amp;nbsp;state/condition value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Benoit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813865#M2450</guid>
      <dc:creator>BenoitPronovost1</dc:creator>
      <dc:date>2017-02-08T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813866#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benoit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just some clarification to understand your issue -&lt;/P&gt;&lt;P&gt;When you open an ArcGIS Pro project, it remembers the Dockpanes that were open previously. So in your case, when the project opens up, the SAP connection is not valid, but still the controls in your Dockpane are visible\enabled. Is this what you are trying to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 01:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813866#M2451</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2017-02-09T01:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813867#M2452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma, this is exactly what I'm trying to solve.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813867#M2452</guid>
      <dc:creator>BenoitPronovost1</dc:creator>
      <dc:date>2017-02-09T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813868#M2453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benoit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can accomplish this by:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set the "&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#declaring-modules-in-daml"&gt;autoLoad&lt;/A&gt;" property in your Config.daml to true. This will allow your add-in to load automatically when ArcGIS Pro starts. The default setting for this property is false.&lt;/LI&gt;&lt;LI&gt;In your Dockpane's view model, override the InitializeAsync method of the dockpane.&amp;nbsp; Inside this method, check the status of your SAP connection and set a Boolean property.&amp;nbsp; This property can then be used to bind&amp;nbsp;to your controls in your Dockpane xaml&amp;nbsp;- to set their enabled\disabled or visibility states.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813868#M2453</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2017-02-09T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813869#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Uma,&lt;/P&gt;&lt;P&gt;I was hoping for a&amp;nbsp;less&amp;nbsp;"code behind" solution but I guess I will manage something your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benoit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813869#M2454</guid>
      <dc:creator>BenoitPronovost1</dc:creator>
      <dc:date>2017-02-09T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813870#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benoit&lt;/P&gt;&lt;P&gt;Correction: You do not have to set the autoload property to true in your example. The add-in should work with this property set to false (default value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813870#M2455</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2017-02-10T21:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813871#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to hide the dockpane completely when the Pro client is launched. I have tried overriding the&amp;nbsp;InitializeAsync() and calling the hide method on the DockPane object, but it still appears. Is there no way to hide a dockpane if it was open during the previous session of Pro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 22:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813871#M2456</guid>
      <dc:creator>LesleyBross1</dc:creator>
      <dc:date>2020-05-26T22:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hide dockpane based on state</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813872#M2457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same question as Leslie. I want my dockpane to be closed when the project is opened. I solved this problem by closing the dockpane when ArcGIS Pro is shut down. I use the following code in my module:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;protected&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;override&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;CanUnload&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;                
    DockPane dockPane &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FrameworkApplication&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DockPaneManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Find&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;_myDockPaneID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dockPane &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        dockPane&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsVisible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hide-dockpane-based-on-state/m-p/813872#M2457</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2021-12-12T09:35:09Z</dc:date>
    </item>
  </channel>
</rss>

