Hi! I develop Prism 6 WPF MVVM application which I initually created as Prism Unity App (WPF) by the use of Prism Template Pack for Prism 6. I use various Telerik components (RadChartView, RadButton, RadRadioButton, e.t.c) in developing UI of my application. As windows and usercontrols in my application I use Prism Window (WPF) and Prism UserControl (WPF) respectively. I use Prism Window (WPF) and Prism UserControl (WPF) because they give certain facilities in development of WPF MVVM Prism 6 application. So I'd like to know the following:
1) Can I use Telerik Styles for Prism Window (WPF) and Prism UserControl (WPF) that are supplied with Prism Template Pack for Prism 6 ?
2) Can I use Telerik Styles for Telerik' UI components (RadChartView, RadButton, RadRadioButton, e.t.c) used inside Prism Window (WPF) or Prism UserControl (WPF) ?
Your (Telerik) styles are very nice and I would want to use them in my application UI development very. Your help will be appreciated highly.
Yours sincerely Eugene.
6 Answers, 1 is accepted
I will go straight to your questions.
1. The Prism Window and UserControls that you are using are actually the native WPF Window and UserControl. Currently, our theming mechanism does not support and provide theme for the native WPF Window. Here is a list of all native controls supported by Telerik theming mechanism:
http://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-themes-mscontrols.html
Because of that you want be able to Style the WPF Window control with our themes. However, instead of using the native WPF Window you could use as Shell our RadWindow and Style it as needed. Please, check the attached sample that demonstrates how to achieve this - the Window is Styled with our latest theme the GreenTheme.
2. You should not have any concerns of using our themes and our controls with Prism. Once you apply a theme the controls should be visualized as expected with the theme you have applied.
We hope the provided information will be helpful for you.
Regards,
Nasko
Telerik
Thank you very much, Nasko. But your application example comprises only one module - Shell project. My application is Prism 6 modular application and its solution comprises one Shell project and numerous modules each of which is Prism 6 Module. Each of these modules has its own Views, ViewModels and Models in accordance to MVVM pattern principle. And each View in such Prism Module project is Prism UserControl(WPF) displayed in MainContentRegion of the Shell when I click the appropriate navigation button in the application toolbar in Shell (so my application is view-switching application). Below I show markup for MainContentRegion region in my application' MainWindow (Shell):
<ContentControl prism:RegionManager.RegionName="MainContentRegion"
Grid.Column="1" Grid.Row="2" Margin="5,0,5,5" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
As you know - this is the part of XAML markup of MainWindow (Shell) of my application. Also you wrote: "You should not have any concerns of using our themes and our controls with Prism. Once you apply a theme the controls should be visualized as expected with the theme you have applied." Can I understand it that if I use telerik:RadWindow as Shell in my modular Prism 6 WPF application and this window is styled with your latest theme the GreenTheme, the views in numerous Prism modules in my application (as I wrote above each such view is Prism UserControl(WPF)) will be visualized (in Shell' MainContentRegion region) with the theme (GreenTheme)? Or not?
All our controls from the UI for WPF suite supports our themes when Prism is used. If you apply the theme in an application level (inside App.xaml) all controls in your application that are part of our suite should apply that theme. We also support our themes for some of the native WPF controls as mentioned in my previous response - the theme should also be applied to them without any concerns.
However, as an answer to your question if you apply the theme on your Shell level it should be applied for the controls on your other views as well - I have modified the sample by adding an additional view and applying the theme on the Shell (notice the theme gets applied for the controls in the view as well). We suggest you to check our article about Implicit Themes from our help documentation for some more detailed information:
http://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-implicit-styles-overview
We hope this will help you.
Regards,
Nasko
Telerik
I am to glad to hear everything is working as expected for you and I was able to help you.
If you have any additional questions or concerns regarding Telerik controls, please do not hesitate to contact us.
Regards,
Nasko
Telerik