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
180
How to customize docking menu ?
posted

Hi

We had to customize the docking manager to behave like SDI/MDI ... Now some docking menu items linked to TDI are not applicable ....

Is it possible to customize the docking menu attached to the PaneHeaderPresenter by modifying only styles without modifying Infragistic code ?

More precisely is it possible to :

  • Modify one string  (for instance Tabbed Document)  ?
  • remove one menu item (for instance Move To Next Tab Group) ?

Thanks in advance for your answer

Parents
  • 54937
    Suggested Answer
    Offline posted

    There are two options that I can think of. One is that you write an attached behavior and handle the OptionsMenuOpening where you can manipulate the menu items. This is the best option because all the menus for the content pane route through this - the window position menu within the PaneHeaderPresenter, the ContextMenu for the ContentPane and when showing the context menu for the PaneToolWindow (i.e. the floating window). If you need to only use styles then you will likely not be able to handle all of these but you can handle some. For the PaneHeaderPresenter you would probably just exclude the PART_PositionMenuItem and provide your own UI.

Reply Children