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

Styling the FindReplaceDialog without MEF

1 Answer 81 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 04 Sep 2014, 10:39 PM
Hello,
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"/>
3.</Style>
4. 
5.<Style TargetType="{x:Type telerik:RadWindow}" BasedOn="{StaticResource RadWindowStyleABC}"/>

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 08 Sep 2014, 12:47 PM
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.


Regards,
Masha
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.
 
Tags
RichTextBox
Asked by
Jason
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or