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
170
Need to modify the drop down menu in the content pane of a dock manager
posted

Hi,

I have a tabgrouppane contained in a xamDockManager, with the following heirarchy.

XamDockManager >> DocumentContentHost >> SplitPane >> TabGroupPane. I wanted to

implement an add tab  button just like in firefox, so i created an additional tab with a '+' button to

behave like an add-tab button. But the problem is that the add-tab button now appears in the

drop-down menu of the content pane when i click on the button on the far right end of the contentpane.

I tried handling the event contentPane_optionsMenuOpening and contentPane_contextMenuOpening

of the contentpane to modify the menu, but it does not seem to handle the drop-down event.

Could you please suggest a way to achieve this?

Thanks in advance,

Nihar.

  • 54937
    Offline posted

    I'm not sure how you are adding another tab but it sounds like your question is how can you control what is displayed in the files menu dropdown in a tabgrouppane in the documentcontenthost. In 10.1 we added a routed bubble event to TabGroupPane names FilesMenuOpening so you could handle that event and remove the MenuItem whose CommandParameter is that pane.