Additional Layout Events

96
4
05-22-2018 05:53 AM
Highlighted
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

Reply
0 Kudos
4 Replies
Highlighted
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

Highlighted
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");
});
Highlighted
New Contributor III

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

Reply
0 Kudos
Highlighted
Esri Regular Contributor

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

Thank you for bringing these events to our attention.\

Jeff