<?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 Using ModuleSettingsReader and ModuleSettingsWriter outside of Module class in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-modulesettingsreader-and/m-p/1551266#M12210</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;in the Module class of an AddIn, you can save and read your own project settings by overwriting OnWriteSettingsAsync and OnReadSettingsAsync.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; Is it possible to use the ModuleSettingsReader and ModuleSettingsWriter passed as parameters in these methods in a different way?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I want to be able to use ModuleSettingsReader and ModuleSettingsWriter outside of the Module class.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The reason for this is that I want to write and read these project settings not only when saving or loading the project, but also when opening and closing a separate window, for example.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I haven't been able to find an example of this yet.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 13:24:17 GMT</pubDate>
    <dc:creator>JFr87</dc:creator>
    <dc:date>2024-10-23T13:24:17Z</dc:date>
    <item>
      <title>Using ModuleSettingsReader and ModuleSettingsWriter outside of Module class</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-modulesettingsreader-and/m-p/1551266#M12210</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;in the Module class of an AddIn, you can save and read your own project settings by overwriting OnWriteSettingsAsync and OnReadSettingsAsync.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; Is it possible to use the ModuleSettingsReader and ModuleSettingsWriter passed as parameters in these methods in a different way?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I want to be able to use ModuleSettingsReader and ModuleSettingsWriter outside of the Module class.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The reason for this is that I want to write and read these project settings not only when saving or loading the project, but also when opening and closing a separate window, for example.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I haven't been able to find an example of this yet.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-modulesettingsreader-and/m-p/1551266#M12210</guid>
      <dc:creator>JFr87</dc:creator>
      <dc:date>2024-10-23T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using ModuleSettingsReader and ModuleSettingsWriter outside of Module class</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-modulesettingsreader-and/m-p/1551759#M12223</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Look at the&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/BackStage_PropertyPage" target="_self"&gt;BackStage_PropertyPage&lt;/A&gt; sample. Open&amp;nbsp;ProjectSettingsViewModel.cs file. Look inside&amp;nbsp;InitializeAsync() and&amp;nbsp;CommitAsync() methods how you can access and modify project settings. If you need to save changes right now, you can call :&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;await Project.Current.SaveAsync();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 11:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-modulesettingsreader-and/m-p/1551759#M12223</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-10-24T11:02:58Z</dc:date>
    </item>
  </channel>
</rss>

