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
245
Update docked panel's caption at the runtime
posted

I've a panel docked in a UltraDockManager.  An "title bar" with a Pin button and a Close button appear automatically once the panel is docked. 

At the design time, the text of the "title bar" can be accessed by DockAreas.DockAreaPane[0].Panes.DockableControlPane[0].Text.

My question is what's the best way update the text on the "title bar" at the runtime, when the panel either docked or unpinned. Thanks.

 

Parents
No Data
Reply
  • 44743
    posted

    Assuming your dock manager and panel are named ultraDockManager1 and panel1, the following code should work at run-time:

    this.ultraDockManager1.ControlPanes[panel1].Text = "Panel 1";

Children