Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
640
Get ContentPane from ContentPanePlaceholder possible ?
posted

Hi,

I have the following issue:

I have a TabGroupPane with several ContentPanes.
Click AutoHIde on a given ContentPane
Mouse 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.

Parents
  • 54937
    Offline posted

    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.

Reply Children