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.
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:
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:
Also I have implement a very basic sample in order to demonstrate this approach.
Please let me know if you have any further questions.
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help?
Just let me know.
I didn't get a chance yet to play with the articles you have provided me. I will try to get back when I am done.
Thanks for the quick response.