This is a migrated thread and some comments may be shown as answers.

How to Add "Window Control"?

1 Answer 100 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Saeid
Top achievements
Rank 1
Saeid asked on 25 Nov 2013, 09:08 AM
I want to add windowControls top of panorma like this photo.
how can I do?

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 28 Nov 2013, 08:16 AM
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 >>
Tags
Panorama
Asked by
Saeid
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or