<?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 EmbeddableControl.OpenAsync is called twice in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embeddablecontrol-openasync-is-called-twice/m-p/813078#M2417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently dipping into using EmbeddableControls by fooling around with the official DivideLines sample. The ViewModel overrides the OpenAsync method of the EmbeddableControl base class to set up some stuff. When I fire up the "Divide Lines" tool from the "Edit" tab the OpenAsync method gets called once&amp;nbsp;as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I change the Config.daml and start the tool from it's own ribbon tab page the OpenAsync method gets called twice.. and I can't figure out why?! Since the OpenAsync method subscribes to events etc. it's less than optimal if it gets called multiple times and I have to work around with an isControlOpen flag - which is not so diserable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how come the OpenAsync method is called twice when the tool is started from the ribbon tab but not when called from the "Edit" tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 13:40:30 GMT</pubDate>
    <dc:creator>RehmSoftware</dc:creator>
    <dc:date>2018-07-24T13:40:30Z</dc:date>
    <item>
      <title>EmbeddableControl.OpenAsync is called twice</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embeddablecontrol-openasync-is-called-twice/m-p/813078#M2417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently dipping into using EmbeddableControls by fooling around with the official DivideLines sample. The ViewModel overrides the OpenAsync method of the EmbeddableControl base class to set up some stuff. When I fire up the "Divide Lines" tool from the "Edit" tab the OpenAsync method gets called once&amp;nbsp;as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I change the Config.daml and start the tool from it's own ribbon tab page the OpenAsync method gets called twice.. and I can't figure out why?! Since the OpenAsync method subscribes to events etc. it's less than optimal if it gets called multiple times and I have to work around with an isControlOpen flag - which is not so diserable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how come the OpenAsync method is called twice when the tool is started from the ribbon tab but not when called from the "Edit" tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embeddablecontrol-openasync-is-called-twice/m-p/813078#M2417</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2018-07-24T13:40:30Z</dc:date>
    </item>
  </channel>
</rss>

