Hi
I have set all my panes CloseAction to RemovePane. When i close a pane and call the DockManager function GetPanes(), i still get all the panes. How can i get only all active panes?
I'm trying to implement a procedure where the last active pane is not allowed to be closed and not allowed to be floating.
ContentPanes that were removed from the xamDockManager should not be returned from the enumerator returned from GetPanes. Please provide a sample that demonstrates the issue and we can look into it further.
Note the list maintained is updated asynchronously to ensure that the pane is really removed and not just being reparented so make sure that that is not what is causing your issue.
Which event should i then listened to, so that i get the updated list?
There is no event specific to when the list is cleaned up. When are you using the method now?
Right after the pane closing event is triggered.
I've the listening event to pane.closed and now it works. :)