<?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 Disable Dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718821#M89</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dockpane with a few buttons. some of the buttons takes a while (running a few GP tools) and all the buttons depend on each other.&lt;/P&gt;&lt;P&gt;When I press a button I do not like the user to press any other button in the pane until the one that I pressed is finished.&lt;/P&gt;&lt;P&gt;All other panes, pan/zoom etc. should be active.&lt;/P&gt;&lt;P&gt;The way I found is to define IsEnable with binding for each button then when the button starts I set it to false and NotifyPropertyChanged.&lt;/P&gt;&lt;P&gt;This works but I need to do do it for each button.&lt;/P&gt;&lt;P&gt;I was hoping to find a general way to do it for all controls in the dockpane.&lt;/P&gt;&lt;P&gt;I was looking for Enable here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10410.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10410.html"&gt;ArcGIS Pro 2.6 API Reference Guide&lt;/A&gt;&amp;nbsp; but it does not work.&lt;/P&gt;&lt;P&gt;Should I use conditions and how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2020 05:55:53 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2020-10-12T05:55:53Z</dc:date>
    <item>
      <title>Disable Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718821#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dockpane with a few buttons. some of the buttons takes a while (running a few GP tools) and all the buttons depend on each other.&lt;/P&gt;&lt;P&gt;When I press a button I do not like the user to press any other button in the pane until the one that I pressed is finished.&lt;/P&gt;&lt;P&gt;All other panes, pan/zoom etc. should be active.&lt;/P&gt;&lt;P&gt;The way I found is to define IsEnable with binding for each button then when the button starts I set it to false and NotifyPropertyChanged.&lt;/P&gt;&lt;P&gt;This works but I need to do do it for each button.&lt;/P&gt;&lt;P&gt;I was hoping to find a general way to do it for all controls in the dockpane.&lt;/P&gt;&lt;P&gt;I was looking for Enable here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10410.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10410.html"&gt;ArcGIS Pro 2.6 API Reference Guide&lt;/A&gt;&amp;nbsp; but it does not work.&lt;/P&gt;&lt;P&gt;Should I use conditions and how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 05:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718821#M89</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2020-10-12T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718822#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mody,&lt;/P&gt;&lt;P&gt;You can disable all dockpane controls by binding root grid IsEnabled to to your view model property.&lt;/P&gt;&lt;P&gt;Or you can put all your buttons to grid, stackpanel, toolbar, group or etc. and do the same as with all dockpane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718822#M90</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2020-10-12T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718823#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3417" target="_blank"&gt;Mody Buchbinder&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to disable the whole dockpane, you can follow like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In your xaml (dockpane xaml)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add boolean binding, at the first xml tag after width height like =&amp;gt;&amp;nbsp;d:DesignHeight="300" d:DesignWidth="300"&lt;SPAN style="color: #808000;"&gt; IsEnabled="{Binding Path=DockEnabled}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;2. In your view model c# class, add the property you bind in your xaml,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; &lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; dockEnabled&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; DockEnabled
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;get&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; dockEnabled&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;set&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="token function"&gt;SetProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;ref&lt;/SPAN&gt; dockEnabled&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;value&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; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; DockEnabled&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;
        &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. At constructor, assign it to true first&lt;/P&gt;&lt;P&gt;And subsequently if you want to disable the dockpane, assign it false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to call that variable in the QueuedTask block , call in that way&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; Dispatcher&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CurrentDispatcher&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Invoke&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; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DockEnabled &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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know how's go, currently I am using 2.6.2 and play like this , it is working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/disable-dockpane/m-p/718823#M91</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:46:29Z</dc:date>
    </item>
  </channel>
</rss>

