OnShow called multiple times on dockpane initialization

287
0
09-25-2018 09:14 AM
MaxMax2
Occasional Contributor II

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