<?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 Access ViewModel from a ProWindow in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-viewmodel-from-a-prowindow/m-p/862822#M4822</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;How would you go about trying to access the data from a ViewModel (belonging to a ProWindow) from another ViewModel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to find some way of doing it via the FrameworkApplication - in the same style as the DockPaneManager - but alas there does not seem to be an equivalent for a ProWindow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I hold a reference to the ViewModel in the Module class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 14:21:56 GMT</pubDate>
    <dc:creator>Vidar</dc:creator>
    <dc:date>2019-11-14T14:21:56Z</dc:date>
    <item>
      <title>Access ViewModel from a ProWindow</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-viewmodel-from-a-prowindow/m-p/862822#M4822</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;How would you go about trying to access the data from a ViewModel (belonging to a ProWindow) from another ViewModel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to find some way of doing it via the FrameworkApplication - in the same style as the DockPaneManager - but alas there does not seem to be an equivalent for a ProWindow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I hold a reference to the ViewModel in the Module class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 14:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-viewmodel-from-a-prowindow/m-p/862822#M4822</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2019-11-14T14:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access ViewModel from a ProWindow</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-viewmodel-from-a-prowindow/m-p/862823#M4823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Module class (which is a singleton) to register your dockpane(s) for access throughout your add-in or even from other add-ins.&amp;nbsp; The pattern is utilized by this sample for internal access:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolIdentifyWithDockpane"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolIdentifyWithDockpane&lt;/A&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolIdentifyWithDockpane"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolIdentifyWithDockpane&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Look in the Module1 class for usage of this property:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;internal&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; MapToolIdentifyDockpaneViewModel MapToolIdentifyDockpaneVM &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;set&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 21:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-viewmodel-from-a-prowindow/m-p/862823#M4823</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2019-11-14T21:10:00Z</dc:date>
    </item>
  </channel>
</rss>

