<?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: Maptool updates Dockpane UI. How to access to data binding property from other class? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617235#M12938</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600523"&gt;@Jeff-Reinhart&lt;/a&gt;&amp;nbsp;Look at the &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geodatabase/DatastoresDefinitionsAndDatasets" target="_self"&gt;DatastoresDefinitionsAndDatasets&lt;/A&gt; sample. DataPath property has two-way binding.&amp;nbsp;DockPane implements&amp;nbsp;&lt;SPAN&gt;INotifyPropertyChanged. OnPropertyChanged is implemented&amp;nbsp; inside&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SetProperty(ref _dataPath, value, () =&amp;gt; DataPath);&lt;/LI-CODE&gt;&lt;P&gt;You can change it to expanded form:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;               _dataPath = value;
                OnPropertyChanged();
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 19:52:20 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2025-05-21T19:52:20Z</dc:date>
    <item>
      <title>Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399674#M11270</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I am struggling to find a way to update an UI element from other class than &amp;lt;*&amp;gt;ViewModel.cs.&lt;/P&gt;&lt;P&gt;I have a docpane with a&amp;nbsp;WaitingCursorControl. Its visibility is cotrolled via data binding in the ViewModel class. However, I do have another MapTool class where I would like to set the visibility of the WaitingCursorControl in the dockpane.&lt;/P&gt;&lt;P&gt;How can access the data binding property from a different class than ViewModel? Any hints?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Adam&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 14:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399674#M11270</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2024-03-22T14:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399678#M11271</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. Find your dockpane:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID);
            if (pane == null)
                return;&lt;/LI-CODE&gt;&lt;P&gt;2. Cast pane to you ViewModel class and access public property:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;(pane as YourDockpaneViewModel).YourPropertyName = value;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Mar 2024 15:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399678#M11271</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-03-22T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399685#M11273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the snippet. I was somehow close to your solution, did not do casting!&lt;/P&gt;&lt;P&gt;have a nice day,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 15:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1399685#M11273</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2024-03-22T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617218#M12936</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;Is there a pattern for setting up two-way binding between dockpane elements and an INotifyPropertyChanged enabled class in the dockpane’s view model? I am not seeing anything in the ProGuide and have had no success trying to implement it myself.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 19:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617218#M12936</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-05-21T19:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617235#M12938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600523"&gt;@Jeff-Reinhart&lt;/a&gt;&amp;nbsp;Look at the &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geodatabase/DatastoresDefinitionsAndDatasets" target="_self"&gt;DatastoresDefinitionsAndDatasets&lt;/A&gt; sample. DataPath property has two-way binding.&amp;nbsp;DockPane implements&amp;nbsp;&lt;SPAN&gt;INotifyPropertyChanged. OnPropertyChanged is implemented&amp;nbsp; inside&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SetProperty(ref _dataPath, value, () =&amp;gt; DataPath);&lt;/LI-CODE&gt;&lt;P&gt;You can change it to expanded form:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;               _dataPath = value;
                OnPropertyChanged();
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 19:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617235#M12938</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-05-21T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Maptool updates Dockpane UI. How to access to data binding property from other class?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617525#M12943</link>
      <description>&lt;P&gt;That example is immensely helpful. Thanks for helping out a C# rookie.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/maptool-updates-dockpane-ui-how-to-access-to-data/m-p/1617525#M12943</guid>
      <dc:creator>Jeff-Reinhart</dc:creator>
      <dc:date>2025-05-22T14:07:23Z</dc:date>
    </item>
  </channel>
</rss>

