<?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: Locator control in custom UI in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/locator-control-in-custom-ui/m-p/1310884#M10063</link>
    <description>&lt;P&gt;Is the UI that you are using in a dockpane or on the ribbon?&amp;nbsp; &amp;nbsp;If you use a custom locator on a dockpane then you can use MVVM as shown in this sample:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/GeocodingTools" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Authoring/GeocodingTools at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you use MVVM you don't have to rely on any events, instead you can use the setter of the 'SelectedItem' dependency property to drive your enable/disable logic.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 06:58:53 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-07-24T06:58:53Z</dc:date>
    <item>
      <title>Locator control in custom UI</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/locator-control-in-custom-ui/m-p/1308528#M10030</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using Pro Locator control in my custom UI. I have couple of other controls as well like a button in that UI. Based on the locator results selection, I have storing some info in a dictionary for further use. But based on that data I also need to enable/disable my other controls for example that button. And if selection is cleared I also have to disable the button in that case as well. But the&amp;nbsp;&lt;STRONG&gt;SelectedGeocodeResultsChanged&lt;/STRONG&gt; is triggered 2 times when result is selected, first time having no data and second time having the data. But if I am clearing the selection results then it is only one time with no data. Why is that? Because due to&amp;nbsp; this I am not able to know when to clear my dictionary based on which I have enable/disable my button.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/locator-control-in-custom-ui/m-p/1308528#M10030</guid>
      <dc:creator>CarlosK</dc:creator>
      <dc:date>2023-07-17T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Locator control in custom UI</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/locator-control-in-custom-ui/m-p/1310884#M10063</link>
      <description>&lt;P&gt;Is the UI that you are using in a dockpane or on the ribbon?&amp;nbsp; &amp;nbsp;If you use a custom locator on a dockpane then you can use MVVM as shown in this sample:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/GeocodingTools" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Authoring/GeocodingTools at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you use MVVM you don't have to rely on any events, instead you can use the setter of the 'SelectedItem' dependency property to drive your enable/disable logic.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 06:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/locator-control-in-custom-ui/m-p/1310884#M10063</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-07-24T06:58:53Z</dc:date>
    </item>
  </channel>
</rss>

