<?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 Open Layout properties window in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100343#M7158</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to open the layout properties window without much success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var wrapper = FrameworkApplication.GetPlugInWrapper("esri_layouts_propertySheet");

var command = wrapper as ICommand;
if (command == null)
return;

// execute the command
if (command.CanExecute(null))
command.Execute(null);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an activeView. But the wrapper is always null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ? Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 15:24:48 GMT</pubDate>
    <dc:creator>FredB</dc:creator>
    <dc:date>2021-09-21T15:24:48Z</dc:date>
    <item>
      <title>Open Layout properties window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100343#M7158</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to open the layout properties window without much success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var wrapper = FrameworkApplication.GetPlugInWrapper("esri_layouts_propertySheet");

var command = wrapper as ICommand;
if (command == null)
return;

// execute the command
if (command.CanExecute(null))
command.Execute(null);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an activeView. But the wrapper is always null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ? Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100343#M7158</guid>
      <dc:creator>FredB</dc:creator>
      <dc:date>2021-09-21T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Open Layout properties window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100355#M7159</link>
      <description>&lt;P&gt;The reason why you get a &amp;lt;null&amp;gt; returned is because this item doesn't implement an ICommand (i.e. button).&amp;nbsp; If you use &lt;SPAN&gt;esri_layouts_layoutPropertiesButton&amp;nbsp;&lt;/SPAN&gt;instead of the property page DAML, your code should work.&amp;nbsp; To find the appropriate DAML Id you can either use the DAML reference here:&amp;nbsp;&lt;A href="https://github.com/ArcGIS/arcgis-pro-sdk/wiki/DAML-ID-Reference-ArcGISLayout.daml" target="_blank" rel="noopener"&gt;DAML ID Reference ArcGISLayout.daml · ArcGIS/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&amp;nbsp;or you can enable the this Pro option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1632239272335.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23478iA7CBC0DC6FC55A35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1632239272335.png" alt="Wolf_0-1632239272335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once enabled you can see the DAML Id as a tooltip:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1632239321035.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23479i99E76EA35BD89DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1632239321035.png" alt="Wolf_1-1632239321035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100355#M7159</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-09-21T15:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open Layout properties window</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100360#M7160</link>
      <description>&lt;P&gt;Here is a code snippet to help you -&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;      //Get the selected item in the Catalog pane
      //Cast as Layout Project item.
      var selectedLayout = Project.GetCatalogPane(true)?.SelectedItems.FirstOrDefault() as LayoutProjectItem;
      if (selectedLayout == null) return;
      //Call Pro's Command to open the selected layout
      // ArcGIS Pro Command's DAML ID. 
      var commandId = "esri_layouts_projectItem_LayoutProperties";
      // get the ICommand interface from the ArcGIS Pro Button
      // using command's plug-in wrapper
      var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
      if (iCommand != null)
      {
        // Let ArcGIS Pro do the work for us
        if (iCommand.CanExecute(null))
        {
          iCommand.Execute(null);
        }
      }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-layout-properties-window/m-p/1100360#M7160</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-09-21T15:58:18Z</dc:date>
    </item>
  </channel>
</rss>

