Add Minimize,Maximize and Close buttons to telerik RadPanaroma

2 posts, 0 answers
  1. Donnie
    Donnie avatar
    2 posts
    Member since:
    Nov 2014

    Posted 12 Dec 2014 Link to this post


    Can anyone please tell me how to add the Minimize , Maximize and close button on the panorama control or form just like the one on the demo.? I've been trying to achieve that for sometime now. I need help.

  2. Hristo
    Hristo avatar
    1517 posts

    Posted 15 Dec 2014 Link to this post

    Hi Donnie,

    Thank you for writing.

    One way to achieve this is to use RadTitleBar control, and place the title bar and the panorama control is some container (like RadPanel for example). 

    The other way to do this is to create an instance of our RadTitleBarElement class, apply the desired settings regarding size and position of the buttons and then add the element to your form or panorama control. Please note that you should also implement the behavior of the Minimize, Maximize and Close buttons:
    public partial class Form1 : RadForm
        private RadTitleBarElement titleBar;
        public Form1()
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.ControlBox = false;
        private void SetTitleBar()
            this.titleBar = new RadTitleBarElement();
            this.titleBar.FillPrimitive.Visibility = ElementVisibility.Hidden;
            this.titleBar.MaxSize = new Size(0, 30);
            this.titleBar.Children[1].Visibility = ElementVisibility.Hidden;
            this.titleBar.CloseButton.Parent.PositionOffset = new SizeF(0, 10);
            this.titleBar.CloseButton.MinSize = new Size(50, 50);
            this.titleBar.CloseButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
            this.titleBar.MinimizeButton.MinSize = new Size(50, 50);
            this.titleBar.MinimizeButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
            this.titleBar.MaximizeButton.MinSize = new Size(50, 50);
            this.titleBar.MaximizeButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
            this.titleBar.CloseButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            this.titleBar.MinimizeButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            this.titleBar.MaximizeButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            this.titleBar.Close += new TitleBarSystemEventHandler(titleBar_Close);
            this.titleBar.Minimize += new TitleBarSystemEventHandler(titleBar_Minimize);
            this.titleBar.MaximizeRestore += new TitleBarSystemEventHandler(titleBar_MaximizeRestore);
        private void titleBar_MaximizeRestore(object sender, EventArgs args)
            if (this.WindowState != FormWindowState.Maximized)
                this.WindowState = FormWindowState.Maximized;
                this.WindowState = FormWindowState.Normal;
        private void titleBar_Minimize(object sender, EventArgs args)
            this.WindowState = FormWindowState.Minimized;
        private void titleBar_Close(object sender, EventArgs args)

    I hope that this information helps. Should you have further questions please do not hesitate to ask.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top