Hi,
I have the following issue:
I have a TabGroupPane with several ContentPanes.Click AutoHIde on a given ContentPaneMouse over to bring up the ContentPane
At this step each TabGroupPane.Items become a ContentPanePlaceholder instead of ContentPane
Thing is that at a later step (when a ContentPane is closed) I have a code that given a ContentPane.Content (object) searchs for in the TabGroupPane.Items Collection and removes it . The ContentPlaceholder doesn't expose a public Pane property (however, it does have a private one), so problem is how can I remove the ContentPane from the original TabGroupPane.Items collection in this case.
Thanks,Claudio.
Currently the associated contentpane isn't exposed but if you're trying to remove a ContentPane completely from the XamDockManager (even if you're going to reinsert it), then you can set the PaneCloseAction to remove and use the Close command to close/remove the xamdockmanager. This will remove all the associated placeholders including any that may have been created for floating panes.
Thanks Andrew,
I now have the following code and it removes it also from the TabGroupPane.Items collection:
foreach (ContentPane contentPane in contentPanes) { if (e.OldItems.Contains(contentPane.Content)) { contentPane.Content = null; contentPane.CloseAction = PaneCloseAction.RemovePane; contentPane.ExecuteCommand(ContentPaneCommands.Close); } }
Is there anything else I am missing there ?
Thanks,Claudio
The code for removing the pane seems fine. I can't really comment on anything that may be missing since I don't have enough context of your question/usage.
I too have a similar problem here but I need to obtain the ContentPane from the ContentPanePlaceHolder so I can work with the ContentPane. Is there any way to retrieve it?
Cheers,
Jason
Currently the associated Pane is not publicly available. Youl should submit the issue to the support group and we could make that readonly Pane property public. For now you could probably use reflection to access it.
Hi Andrew,
Any solution for this problem???
Please let us know.
Thanks,
Uday Thummalapalli
The Pane property of the ContentPanePlaceholder is public. It actually has been since late 2009.