How to customize RadWindows

8 posts, 1 answers
  1. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 21 Nov 2014 Link to this post

    Hi all,

    Now I want to create such a below window, see attached file. Basically, it has a different style of Min, Max and Close button. I want to know how do this.

    Thanks,
    Arthur
  2. Answer
    Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 25 Nov 2014 Link to this post

    Hello Jingfei,
     
    In order to achieve the desired appearance of RadWindow you could use implicit styles to create a custom RadWindowStyle based on the default one. By modifying the default ControlTemplate of the style the desired could be achieved. We have created a sample project that demonstrates the described approach using Windows7 style. Please, give it a try and let us know if it works for you.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
     

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 29 Nov 2014 in reply to Nasko Link to this post

    Thanks Nasko. I've figured out a way to do that according to your suggestions.
  5. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 13 Dec 2014 in reply to Nasko Link to this post

    Thanks, Nasko.

    I would give it a try.
  6. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 18 Dec 2014 in reply to Nasko Link to this post

    Hi Nasko, 

    A little further concerns. When i use implicit styles of RadWindow, each time I make some changes, i have to run the app to see how it looks like. Isn't there any design time tool or method to do that?
  7. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 19 Dec 2014 Link to this post

    Hi Jingfei,

    The changes made in the style of RadWindow could be visualized in the Design window of Visual Studio. However, when implicit styles are used the styles are not loaded directly from the UserControl thus the changes could not be visualized. In order to resolve that the ControlTemplate of RadWindow should be set in the RadWindow UserControl definition as shown below:

    <telerik:RadWindow  ....
    Template="{StaticResource RadWindow_ControlTemplate}"
        ....         >

    Hope this helps.

    Regards,
    Nasko
    Telerik
     

    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.

     
  8. Jackey
    Jackey avatar
    71 posts
    Member since:
    Oct 2014

    Posted 20 Dec 2014 in reply to Nasko Link to this post

    Thanks Nasko. It helps a lot.

    However, i don't see any effects of ModalBackground of RadWindow, i don't find any visual structure of radwindow which showing the effect of that property. 
  9. Polya
    Admin
    Polya avatar
    199 posts

    Posted 24 Dec 2014 Link to this post

    Hello Jingfei,

    I am afraid that the ModalBackground property is not supported in RadWindow for WPF. The property is available for cross platform compatibility with Silverlight where the ModalBackground appears in the browser.
    This is a limitation in WPF framework and does not relate specifically to RadWindow.


    Regards,
    Polya
    Telerik
     

    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
UI for WPF is Visual Studio 2017 Ready