Select to view content in your preferred language

OnShow called multiple times on dockpane initialization

369
0
09-25-2018 09:14 AM
MaxMax2
Frequent Contributor

If a dockpane was visible on ArcGIS Pro closing, next time the dockpane will be opened on ArcGIS Pro start. But its method OnShow will be called multiple times with IsVisible switched from true to false and then from false to true. Why is this happening?

I want to place some logic on switching dockpane's visibility, but with the described behavior this logic will be executed multiple times with undesireable effects. My task is to determine on ArcGIS Pro start if a dockpane will be visible or not and at now I don't see reliable method.

Tags (2)
0 Kudos
0 Replies