How to Add "Window Control"?

2 posts, 0 answers
  1. Saeid
    Saeid avatar
    1 posts
    Member since:
    Nov 2013

    Posted 25 Nov 2013 Link to this post

    I want to add windowControls top of panorma like this photo.
    how can I do?
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 28 Nov 2013 Link to this post

    Hi Saeid, 

    Thank you for writing.

    In order to achieve your goal, you need to follow these steps: 
    1. Add a RadForm
    2. Add a RadPanorama and set the Dock property to Fill
    3. Hide the default TitleBar of the RadForm. You can use this code snippet: 
    this.FormElement.TitleBar.MaxSize = new Size(0, 1);
    4. Add a RadTitleBarElement in the panorama and subscribe for the Close, Minimize, MaximizeRestore events. 

    The image which you have sent is from our DemoHub application. You can find useful the PrepareTitleBar() method from our demo. The location where you can find it is: START >> All Programs >> Telerik >> RadControls for WinForms [version] >> Examples >> C# for Visual Studio 2010 >> Open C# DemoHub in Visual Studio - RadControls for WinForms. 

    Hope this will help you. Let me know if you have any other questions.
    Regards,
    Ralitsa
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top