<?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: Create custom Layout settings in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067401#M6724</link>
    <description>&lt;P&gt;Thanks for that, I was at a similarly state&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;!&lt;BR /&gt;So I wasn't wrong with my code.&lt;/P&gt;&lt;P&gt;My current problem is to identify the layout-instance inside the wpf-control.&lt;/P&gt;&lt;P&gt;But I think I got it (with your example):&lt;BR /&gt;The "PropertyPage1ViewModel" will be instantiated by Pro, Data[0] will be set to the layout-instance.&lt;BR /&gt;Then the custom-control "PropertyPage1View" (User-Control) ist created. After the constructor (not at it's end!) the DataContext-Property will be set to the&amp;nbsp;the instance of the view-model.&lt;/P&gt;&lt;P&gt;The next step is to find out, how I should write and read the settings with the module "OnReadSettingsAsync/OnWriteSettingsAsync" (best practice).&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 16:30:20 GMT</pubDate>
    <dc:creator>FlorianHoffmann2</dc:creator>
    <dc:date>2021-06-11T16:30:20Z</dc:date>
    <item>
      <title>Create custom Layout settings</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067343#M6720</link>
      <description>&lt;P&gt;Hello, I found this nice article about adding a custom project/application settings page using the SDK:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-blog/create-custom-project-and-application-settings-using-the-arcgis/ba-p/883358" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-blog/create-custom-project-and-application-settings-using-the-arcgis/ba-p/883358&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- Project --&amp;gt;
&amp;lt;/modules&amp;gt;
	&amp;lt;propertySheets&amp;gt;
		&amp;lt;updateSheet refID="esri_core_optionsPropertySheet"&amp;gt;
			&amp;lt;insertPage id="esri_sdk_PropertyPageProjectSettings"
						caption="Sample Project Settings"
						className="ProjectSettingsViewModel"
						group="Project"&amp;gt;
							&amp;lt;content className="ProjectSettingsView" /&amp;gt;
			&amp;lt;/insertPage&amp;gt;
		&amp;lt;/updateSheet&amp;gt;
	&amp;lt;/propertySheets&amp;gt;
&amp;lt;/ArcGIS&amp;gt;

&amp;lt;!-- Application --&amp;gt;
&amp;lt;/modules&amp;gt;
	&amp;lt;propertySheets&amp;gt;
		&amp;lt;updateSheet refID="esri_core_optionsPropertySheet"&amp;gt;
			&amp;lt;insertPage id="esri_sdk_PropertyPageAppSettings"
						caption="Sample App Settings"
						className="ApplicationSettingsViewModel"
						group="Application"&amp;gt;
							&amp;lt;content className="ApplicationSettingsView" /&amp;gt;
			&amp;lt;/insertPage&amp;gt;
		&amp;lt;/updateSheet&amp;gt;
	&amp;lt;/propertySheets&amp;gt;
&amp;lt;/ArcGIS&amp;gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Theoretically, it should only be necessary to identify the group-id for the property window of layouts.&lt;/P&gt;&lt;P&gt;Practically, however, there is only one application and one project (at runtime) and several layouts. Which is probably a problem.&lt;/P&gt;&lt;P&gt;So, it is possible?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067343#M6720</guid>
      <dc:creator>FlorianHoffmann2</dc:creator>
      <dc:date>2021-06-11T14:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Layout settings</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067366#M6721</link>
      <description>&lt;P&gt;I made some progess:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;propertySheets&amp;gt;
      &amp;lt;updateSheet refID="esri_layouts_propertySheet"&amp;gt;
        &amp;lt;insertPage  id="esri_sdk_PropertyPageLayoutSettings"
						caption="Sample Layout Settings"
						className="LayoutSettingsViewModel"&amp;gt;
							&amp;lt;content className="ProjectSettingsView" /&amp;gt;
			&amp;lt;/insertPage&amp;gt;
      &amp;lt;/updateSheet&amp;gt;
    &amp;lt;/propertySheets&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FlorianHoffmann2_0-1623424394255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15754i8D9B041A3662DCBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FlorianHoffmann2_0-1623424394255.png" alt="FlorianHoffmann2_0-1623424394255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will keep this thread updated, perhaps someone else will find it useful.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067366#M6721</guid>
      <dc:creator>FlorianHoffmann2</dc:creator>
      <dc:date>2021-06-11T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Layout settings</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067392#M6723</link>
      <description>&lt;P&gt;I attached my sample&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1623427208355.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15757iA345B79719D09851/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1623427208355.png" alt="Wolf_0-1623427208355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To implement the sample i added a property sheet (via New Project Item template) and then used you updateSheet daml above to show the property sheet (that i created) under the layout properties dialog .&amp;nbsp; I didn't delete the auto-inserted propertysheet daml yet (for illustration).&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the config.daml of the sample please check the&amp;nbsp;desktopVersion="2.9...." attribute for the&amp;nbsp;AddInInfo tag.&amp;nbsp; Make sure to set it to the version of ArcGIS Pro that you are running: i.e. 2.7.0, 2.6.0 .... Otherwise the sample won't work for you.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067392#M6723</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-11T16:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Layout settings</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067401#M6724</link>
      <description>&lt;P&gt;Thanks for that, I was at a similarly state&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;!&lt;BR /&gt;So I wasn't wrong with my code.&lt;/P&gt;&lt;P&gt;My current problem is to identify the layout-instance inside the wpf-control.&lt;/P&gt;&lt;P&gt;But I think I got it (with your example):&lt;BR /&gt;The "PropertyPage1ViewModel" will be instantiated by Pro, Data[0] will be set to the layout-instance.&lt;BR /&gt;Then the custom-control "PropertyPage1View" (User-Control) ist created. After the constructor (not at it's end!) the DataContext-Property will be set to the&amp;nbsp;the instance of the view-model.&lt;/P&gt;&lt;P&gt;The next step is to find out, how I should write and read the settings with the module "OnReadSettingsAsync/OnWriteSettingsAsync" (best practice).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1067401#M6724</guid>
      <dc:creator>FlorianHoffmann2</dc:creator>
      <dc:date>2021-06-11T16:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Layout settings</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1068492#M6744</link>
      <description>&lt;P&gt;contextually, assuming it is the active layout u are after, you can retrieve that from &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic18635.html" target="_blank" rel="noopener"&gt;LayoutView.Active&lt;/A&gt;. The active layout view provides access to the layout it is rendering via &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic18639.html" target="_blank" rel="noopener"&gt;layoutView.Layout&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note also, in MVVM, your code should really be in the view model (not the view). Thus, u typically dont need access to the view model in the view (via its data context). In your case, the view model is identified by the className attribute on the "insertPage" tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some (hopefully) useful references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=OEPcDG11wak&amp;amp;list=PLN5okgNxFYJo_gcO1snNlEFMHDwxdlwFU&amp;amp;index=4" target="_blank" rel="noopener"&gt;ArcGIS Pro SDK for .NET: Advanced Pro Customization with Focus on Categories and Custom Settings&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-custom-layout-settings/m-p/1068492#M6744</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-06-15T17:27:47Z</dc:date>
    </item>
  </channel>
</rss>

