RadWindow & Implicit Style

8 posts, 0 answers
  1. Xavier
    Xavier avatar
    10 posts
    Member since:
    Oct 2011

    Posted 05 Nov 2012 Link to this post

    Hello,

    With Q3 2012, I discovered Implicit Style.
    It really works great !!

    The only thing that doesn't work are RadWindow, that doen't style properly. My RadWindow are used as User Control and created only via XAML:
    <telerik:RadWindow 
    ......
    I disabled StyleManager as noticed in the documentation.
    How can I style easily all my RadWindows ?
    Thanks.
    xsch
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Nov 2012 Link to this post

    Hello Xavier,

    Please check the Note at the bottom of the following article:
    http://www.telerik.com/help/wpf/radwindow-how-to-use-radwindow-as-user-control.html - it demonstrates how to style RadWindow with implicit styles when it is used as a user control.

    Regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Xavier
    Xavier avatar
    10 posts
    Member since:
    Oct 2011

    Posted 06 Nov 2012 Link to this post

    Hello Yana,

    Thanks : everything works great now !!!

    All my RadWindows are correct.
    But when I switch Themes at Run Time, all the RadControls are OK, except RadWindows that stay in the previous theme.
    Xavier

  5. Brandon
    Brandon avatar
    1 posts
    Member since:
    Jul 2013

    Posted 30 Jul 2013 Link to this post

    Could I get a answer to the previous question? I'm having the same issue Xavier posted in his last response with the only difference being that I'm using a RadRibbonWindow. I've searched all over the Telerik's documentation and forums and cannot find the solution.

    Thanks,
    Brandon
  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 02 Aug 2013 Link to this post

    Hello Brandon,

    I have attached a sample project which demonstrates RadWindow with dynamic Implicit Styles. Note that I've created an additional ResourceDictionary file ( WindowStyle.xaml ) with the Style for the NewWindow which is removed and added with the rest ResourceDictionaries.

    Hope this helps.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
  7. Martin
    Martin avatar
    3 posts
    Member since:
    May 2014

    Posted 21 May 2014 in reply to Yana Link to this post

    This solution works fine in an application where you have an App.xaml to put the "<ResourceDictionary Source="WindowStyle.xaml" />" but how do you do the same in a shared user control assembly that has RadWindow base windows?

    Those windows from a remote assembly are working fine in the application by adding the require resource dictionary (i.e.WindowStyle.xaml) but at design time of that remote assembly the windows are not showing up in the designer. Is there a trick to get the resource dictionary at the assembly level? 
  8. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 23 May 2014 Link to this post

    Hi Martin,

    In case you do not have App.xaml, you could merge the ResourceDictionaries with code  ( Application.Current.Resources.MergedDictionaries.Add..) or you could merge them locally in the User Control.

    As to the second issue with the designer - could you please provide us with more details/sample project demonstrating the problem, so we to be able to test it at our side?

    I am looking forward to your reply.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  9. Martin
    Martin avatar
    3 posts
    Member since:
    May 2014

    Posted 23 May 2014 in reply to Yana Link to this post

    Since I have included these questions in a support ticket I will follow up on the ticket instead.
    Thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready