AnsweredAssumed Answered

Can I open the layout properties dialog programmatically?

Question asked by amikelson on Jun 7, 2018
Latest reply on Aug 21, 2018 by jbarrette-esristaff

Following is the code I am attempting to use to open the layout properties dialog programmatically:

var command = FrameworkApplication.GetPlugInWrapper(@"esri_layouts_projectItem_LayoutProperties") as ICommand;
if (command != null)
// get the layout project item
var layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Path.Equals(this.LayoutUri));
if (layoutItem != null)
if (command.CanExecute(layoutItem))


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. 


What do I need to pass into the command.CanExecute parameter to use the "esri_layouts_projectItem_LayoutProperties" button?


Thank you,