<?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: How do I get the OK button event in ArcGIS Pro SDK after manually adding a data source to a layer file? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1160721#M8001</link>
    <description>&lt;P&gt;Thanks, it worked perfectly fine for me. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 13:26:55 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-04-04T13:26:55Z</dc:date>
    <item>
      <title>How do I get the OK button event in ArcGIS Pro SDK after manually adding a data source to a layer file?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1159763#M7987</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In ArcGIS Pro, I have two layer files that only contain symbology. When we manually set the source by right-clicking a layer, the layer properties window opens, and we enter the path to it in the set Data source field.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After that, we pressed the OK button; does anyone know the function/API for that, so that I can retrieve that path from the backend using C# and populate the table names and their corresponding columns in my TreeView controller?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_0-1648708092451.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37817i4D87E29B91BE1916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShabinaBano_0-1648708092451.png" alt="ShabinaBano_0-1648708092451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1159763#M7987</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-31T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the OK button event in ArcGIS Pro SDK after manually adding a data source to a layer file?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1159901#M7991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to listen PropertyChanged event on each layer, o layers you want.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;                var layerList = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;Layer&amp;gt;();
                foreach(var layer in layerList)
                {
                    layer.PropertyChanged += MyLayerPropertyChanged;
                }&lt;/LI-CODE&gt;&lt;LI-CODE lang="csharp"&gt;        private void MyLayerPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            // your code here
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 14:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1159901#M7991</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-03-31T14:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the OK button event in ArcGIS Pro SDK after manually adding a data source to a layer file?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1160721#M8001</link>
      <description>&lt;P&gt;Thanks, it worked perfectly fine for me. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 13:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-the-ok-button-event-in-arcgis-pro-sdk/m-p/1160721#M8001</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-04T13:26:55Z</dc:date>
    </item>
  </channel>
</rss>

