I have an issue with detecting floating panes being closed.
On our dock manager we use both PaneStateChange and ActivePaneChanged to try to track which panes in the dock mgr are visible and give the user visual options to show and hide panes.
When a pane is floating and they click the close button, sometimes the ActivePaneChanged event will fire and sometimes it doesn't leaving our pane visual switchboard incorrect.
What would be the sure way to detect floating panes being closed?
Preferrably a trigger from the dock manager because some of our panes are dynamically generated at runtime and I would rather not have triggers attached to every possible pane for this purpose.
On our dock manager we use both PaneStateChange and ActivePaneChanged to try to track which panes in the dock mgr are visible and give the user visual options to show and hide panes.
When a pane is floating and they click the close button, sometimes the ActivePaneChanged event will fire and sometimes it doesn't leaving our pane visual switchboard incorrect.
What would be the sure way to detect floating panes being closed?
Preferrably a trigger from the dock manager because some of our panes are dynamically generated at runtime and I would rather not have triggers attached to every possible pane for this purpose.