I tried my best to go over the forum to see if there is a solution to my problem. If I have missed it , please point me to it.
By default the dock manager provides Minimimize / Maximize / Pin / Close button to handle the DockControlPane.
I would like to add my own custom button, we have a requirement to change the name of the dock control pane. I tried the Pane Active method to show a context menu. But that solution doesn't work that great. So, I want to add a button on the control box area of the dock control pane. I am not sure how to add it.
Any help is greatly appreciated.
Regards.
Hello,
In order to change the text of the pane, you should setting Text property of the DocableControlPane object. For more information please look at the following links:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinDock.v11.2~Infragistics.Win.UltraWinDock.DockablePaneBase~Text.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinDock.v11.2~Infragistics.Win.UltraWinDock.DockablePaneBase~TextTab.html
DocableControlPane object is not designed to has a button collection, in which developer could add custom buttons. However there is an approach whit IUIElementCreationFilter which allows you to add a custom button to the header element of DocableControlPane. For more information about this interface please review the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Win_Creation_Filter.html
Also I have implement a very basic sample in order to demonstrate this approach.
Please let me know if you have any further questions.