I've been looking at hooking up some performance monitoring to our application. I'm currently stuck on Page Transition, and for the most part it is working but I have a few niche edge cases that I need some help to resolve.
The issue in short is that I am unable to detect when a Tool Window is docked, or more appropriatley should I say attached within another Tool Window.
What I am doing is that I start my monitoring on the the PreviewMouseDown on the AdvancedTabItem. When it switches Document Window I can tell once all of my Tool Windows are Loaded by listening to the WPF Loaded event of my Views.
However, the issue comes when a Tool Window is docked (attached) within another Tool Window as only one will be Loaded so my currently logic waits on all the expected Tool Windows to load that will never come until its tab is selected.
Is there a way to tell if a Tool Window is visible? I had hoped IsOpen would have worked but that seems to show True regardless.
Or do you think there is a better I could go about doing this?