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

Apply style to main window

6 Answers 368 Views
Window
This is a migrated thread and some comments may be shown as answers.
Huw
Top achievements
Rank 1
Huw asked on 22 Aug 2011, 04:40 PM
Hi,

using your winforms controls I can change the style of the main window of my application relatively easily

How do I change the style of my main window to the Office_Black theme using WPF controls...

I can see how to set the default theme however this only seems to affect the controls within the window not the border of the window itself.

I have tried using the RadWindow but this only creates a sub window with the defined style, and does not set the main window style

many thansk

6 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 23 Aug 2011, 01:36 PM
Hello Huw,

Currently, it is not possible to use RadWindow as MainWindow. As such feature would require a crucial change in the control, most probably it will not be included in one of the near future releases, but we will consider implementing this behavior in the future.

Best wishes,
Dani
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Jörg
Top achievements
Rank 2
answered on 10 Feb 2012, 02:50 PM
Hi

I also would really appreciate such functionality as this is something a lot of want to do, especially if they now the WinForms library or evaluate your tools.

Jörg
0
Miroslav Nedyalkov
Telerik team
answered on 15 Feb 2012, 12:02 PM
Hi Jörg,

We did some changes in the RadWindow control and now it is possible to use it as a main window of your application. The only limitation is that you cannot just place the path to it in your App.xaml file, but use some code-behind. Please refer to the project attached.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jörg
Top achievements
Rank 2
answered on 17 Feb 2012, 10:43 AM
Hi Miroslav

Thanks for your sample. And yes it works.

Thanks
Jörg
0
Jason
Top achievements
Rank 1
answered on 29 Aug 2014, 02:54 PM
Hey Miroslav!

I appreciate the example.  The problem I'm running into is that it seems that when I change MainWindow to a RadWindow, it stops reading the app.config file.  I get the following error when trying to start the app and the app just shuts down:
"Could not find the default endpoint element that references contract '{insert service contract name here}' in the ServiceModel client configuration section.  This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."
Any help would be greatly appreciated.....
0
Jason
Top achievements
Rank 1
answered on 29 Aug 2014, 02:58 PM
Never mind.....smh.....
Tags
Window
Asked by
Huw
Top achievements
Rank 1
Answers by
Dani
Telerik team
Jörg
Top achievements
Rank 2
Miroslav Nedyalkov
Telerik team
Jason
Top achievements
Rank 1
Share this question
or