Question regarding ContentPanes.. I am persisting the layout of the XamDockManager and reloading the layout. For performance reasons, I only want to load data within a content pane if it is selected or if it is visible to the user when the layout is loaded. For example I may dock some of the tabs but not others, so I may have 2 content panes that are visible after the layout loads while the others remain hidden (I can only see the tab for them).
I have searched high and low but cannot find an answer to this. Is there a way to determine if a content pane/tab in a XamDockManager is visible to the user, meaning, after the layout loads, can the content of the ContentPane been seen on the screen?
Thanks
Attaching an image to further clarify what I am looking for, see attachment.
Based on that image, I want to find a way to determine that Proved Developed and Proved Undeveloped tabs are 'visible' to the user so that I can ensure the data is loaded. The other tabs, Proved, Probable etc... would be considered not visible.
There is nothing specifically on the ContentPane itself that would indicate this. You might try using the IsVisible property of the element that you use as the Content of the pane. Note that property (and the corresponding IsVisibleChanged event) are controlled by the WPF framework so I cannot say exactly when (in relation to the measure/arrange/render) the property will be updated.