<?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 Can I open the layout properties dialog programmatically? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-open-the-layout-properties-dialog/m-p/786949#M1296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following is the code I am attempting to use to open the layout properties dialog programmatically:&lt;/P&gt;&lt;P&gt;var command = FrameworkApplication.GetPlugInWrapper(@"esri_layouts_projectItem_LayoutProperties") as ICommand;&lt;BR /&gt; if (command != null)&lt;BR /&gt; {&lt;BR /&gt; // get the layout project item&lt;BR /&gt; var layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault(item =&amp;gt; item.Path.Equals(this.LayoutUri));&lt;BR /&gt; if (layoutItem != null)&lt;BR /&gt; {&lt;BR /&gt; if (command.CanExecute(layoutItem))&lt;BR /&gt; command.Execute(layoutItem);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the parameter for the GetPlugInWrapper to "esri_layouts_layoutPropertiesButton", I can open the layout properties for the currently active layout pane, however that is not what I am looking to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to pass into the command.CanExecute parameter to use the "esri_layouts_projectItem_LayoutProperties" button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2018 20:19:24 GMT</pubDate>
    <dc:creator>AnthonyMikelson</dc:creator>
    <dc:date>2018-06-07T20:19:24Z</dc:date>
    <item>
      <title>Can I open the layout properties dialog programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-open-the-layout-properties-dialog/m-p/786949#M1296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following is the code I am attempting to use to open the layout properties dialog programmatically:&lt;/P&gt;&lt;P&gt;var command = FrameworkApplication.GetPlugInWrapper(@"esri_layouts_projectItem_LayoutProperties") as ICommand;&lt;BR /&gt; if (command != null)&lt;BR /&gt; {&lt;BR /&gt; // get the layout project item&lt;BR /&gt; var layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault(item =&amp;gt; item.Path.Equals(this.LayoutUri));&lt;BR /&gt; if (layoutItem != null)&lt;BR /&gt; {&lt;BR /&gt; if (command.CanExecute(layoutItem))&lt;BR /&gt; command.Execute(layoutItem);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the parameter for the GetPlugInWrapper to "esri_layouts_layoutPropertiesButton", I can open the layout properties for the currently active layout pane, however that is not what I am looking to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to pass into the command.CanExecute parameter to use the "esri_layouts_projectItem_LayoutProperties" button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 20:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-open-the-layout-properties-dialog/m-p/786949#M1296</guid>
      <dc:creator>AnthonyMikelson</dc:creator>
      <dc:date>2018-06-07T20:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I open the layout properties dialog programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-open-the-layout-properties-dialog/m-p/786950#M1297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be addressed with Pro 2.3.&amp;nbsp; The solution will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayoutProjectItem layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault(item =&amp;gt; item.Name.Equals("Layout"));&lt;BR /&gt; Layout lyt = await QueuedTask.Run(() =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return layoutItem.GetLayout();&lt;BR /&gt; });&lt;BR /&gt; lyt.ShowProperties();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 22:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/can-i-open-the-layout-properties-dialog/m-p/786950#M1297</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2018-08-21T22:54:31Z</dc:date>
    </item>
  </channel>
</rss>

