Styling the FindReplaceDialog without MEF

2 posts, 0 answers
  1. Jason
    Jason avatar
    19 posts
    Member since:
    Mar 2012

    Posted 04 Sep 2014 Link to this post

    I am working on integrating the RadRichTextBox into our product, the integration went very well up until I hit the FindReplaceDialog. I've tried applying default styles to RadWindow, FIndReplaceDialog, and everything else I can think of but I am unable to change the pop-up header color to match our product's theme. Our product uses Unity and Prism and currently does not use MEF so I am trying to avoid having to create a custom FindReplaceDialog and use the dialog via MEF. Is there any way that I can get a style to apply to the pop-up window? Any advice would be greatly appreciated! Thanks,

    Below are some small snippets of the styles I've been attempting to use:

    1.<Style x:Key="RadWindowStyleABC" TargetType="{x:Type telerik:RadWindow}">    
    2.<Setter Property="Foreground" Value="{StaticResource WindowForeground}"/>    
    3.<Setter Property="Background" Value="{StaticResource WindowBackground}"/>

    1.<Style TargetType="{x:Type dialogs:FindReplaceDialog}" BasedOn="{StaticResource RadWindowStyleABC}">
    2.    <Setter Property="Header" Value="find/replace"/>
    5.<Style TargetType="{x:Type telerik:RadWindow}" BasedOn="{StaticResource RadWindowStyleABC}"/>

  2. Masha
    Masha avatar
    355 posts

    Posted 08 Sep 2014 Link to this post

    Hello Jason,

    All styles targeting RadWindow should be placed in App.xaml as the shown RadWindow  is not located in the same visual tree.

    If this does not help, it would be really helpful if you send us a runnable project, so we to be able to research it further.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top