Additional Layout Events

577
4
05-22-2018 05:53 AM
AnthonyMikelson
New Contributor III

I am looking for the following events: LayoutAdded, ElementsAdded, and ElementsRemoved events.  Are these going to be in future releases of the Pro SDK?

Thank you,

Tony

0 Kudos
4 Replies
JeffBarrette
Esri Regular Contributor

Thank you for your feedback Tony!  We did add a couple of new events for Pro 2.2: LayoutRemoving and Layout PausedDrawingChanged but we will strongly consider the 3 events you request for a near term release.

Jeff

UmaHarano
Esri Regular Contributor

Hi Tony

As a workaround you can determine when a new layout has been added by using the ProjectItemsChangedEvent like this:

 ProjectItemsChangedEvent.Subscribe((args) => {
          if (args.ProjectItem is LayoutProjectItem && args.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add)          
              System.Diagnostics.Debug.WriteLine("Layout has been added");
});
AnthonyMikelson
New Contributor III

Thank you Uma!  I will add this and test it out. I appreciate the advice!

0 Kudos
JeffBarrette
Esri Regular Contributor

These events will be added for 2.3: ElementAdded, ElementRemoved, LayoutAdded.

Thank you for bringing these events to our attention.\

Jeff