Hi guys.
I need to have a localized ReportViewer, so i tried to inherit from Telerik.ReportViewer.Wpf.Reportviewer. I know that there are many workarounds to localize the control without inheritance, but I think that in my situation is the best way.
So, i tried to inherit from Telerik.ReportViewer.Wpf.Reportviewer, I created a class that implements the ITextResources interface and I tried to use the control, but it doesn't appear on the window anymore!
(I was using implicit style for the control in this way)
I need to have a localized ReportViewer, so i tried to inherit from Telerik.ReportViewer.Wpf.Reportviewer. I know that there are many workarounds to localize the control without inheritance, but I think that in my situation is the best way.
So, i tried to inherit from Telerik.ReportViewer.Wpf.Reportviewer, I created a class that implements the ITextResources interface and I tried to use the control, but it doesn't appear on the window anymore!
(I was using implicit style for the control in this way)
<
ns:myReportViewer
>
<
ns:myReportViewer.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/Resources/Themes/System.Windows.xaml"
/>
<
ResourceDictionary
Source
=
"/Resources/Themes/Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"/Resources/Themes/Telerik.Windows.Controls.Input.xaml"
/>
<
ResourceDictionary
Source
=
"/Resources/Themes/Telerik.Windows.Controls.Navigation.xaml"
/>
<
ResourceDictionary
Source
=
"/Resources/Themes/Telerik.ReportViewer.Wpf.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
ns:myReportViewer.Resources
>
</
ns:myReportViewer
>