Apply style to main window

7 posts, 0 answers
  1. Huw
    Huw avatar
    3 posts
    Member since:
    Jan 2009

    Posted 22 Aug 2011 Link to this post

    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
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 23 Aug 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jörg
    Jörg  avatar
    8 posts
    Member since:
    Mar 2009

    Posted 10 Feb 2012 Link to this post

    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
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 15 Feb 2012 Link to this post

    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 >>
  6. Jörg
    Jörg  avatar
    8 posts
    Member since:
    Mar 2009

    Posted 17 Feb 2012 Link to this post

    Hi Miroslav

    Thanks for your sample. And yes it works.

    Thanks
    Jörg
  7. Jason
    Jason avatar
    7 posts
    Member since:
    Jun 2013

    Posted 29 Aug 2014 in reply to Miroslav Nedyalkov Link to this post

    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.....
  8. Jason
    Jason avatar
    7 posts
    Member since:
    Jun 2013

    Posted 29 Aug 2014 in reply to Jason Link to this post

    Never mind.....smh.....
Back to Top
UI for WPF is Visual Studio 2017 Ready