Pproblem with the Windows 7 theme

1 Answer 205 Views
RichTextBox Styling
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 25 Mar 2022, 01:12 PM | edited on 28 Mar 2022, 03:07 PM

Hello,

I have an old Silverlight application using the `Windows 7` theme.

In this application, I'm using many controls and the `app.xaml` file contains the following theme files:

      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/System.Windows.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Docking.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.GridView.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.ImageEditor.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Navigation.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RibbonView.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RichTextBoxUI.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Documents.xaml" />
      </ResourceDictionary.MergedDictionaries>

After installation Ui for Silverlight R1 2022 SP1, the application no more starts: it complains about a referenced static resource that is missing, in the `Telerik.Windows.Controls.RichTextBoxUI.xaml` file.

Replacing this file with the one from version R1 2022 makes it work again.

You should really test Silverlight application while you're adding new functions!

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 28 Mar 2022, 02:51 PM

Hello Patrick,

Thank you for the provided code snippet.

Although we try to keep breaking changes to a minimum, it is possible that some are introduced from time to time and that is why we suggest using the embedded recourses (from the theme dll) instead of copying the files manually. Nonetheless, I want to assure you that we thoroughly test any new functionality in all frameworks. With that said, it is not possible to go over all use-cases and setups.

I checked the difference between the Telerik.Windows.Controls.RichTextBoxUI.xaml file from the R1 2022 release and that from the R1 2022 Service Pack and the only major difference is the addition of a few styles and templates for the RadRibbonView control. No styles have been removed, however, so I am uncertain as to why this error is observed.

Would you find it possible to demonstrate this issue in a small sample project so that I can further investigate? Thank you in advance for your cooperation on the matter.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
commented on 28 Mar 2022, 03:06 PM

Hello Dilyan,

why we suggest using the embedded recourses (from the theme dll) instead of copying the files manually
This application was started before implicit styles were developped by Telerik and it would be a nonsense to change it to use implicit styles.

the only major difference is the addition of a few styles and templates for the RadRibbonView control
That's perhaps the problem, as there are styles with the same name...

Would you find it possible to demonstrate this issue in a small sample project so that I can further investigate?
Difficult, because it means creating a new Silverlight application...
If you really test thoroughly the Silverlight version of the controls you should have a simple test case, in which you only need to add the right references to see the problem. In my case, I have to create it from scratch, ahich is much moer time consuming.

Dilyan Traykov
Telerik team
commented on 29 Mar 2022, 02:50 PM

We were able to replicate the exception you described at our end and have thus logged the following bug report: RichTextBox: Missing StaticResource error when using implicit styles.
As a thank you for bringing this to our attention, I've awarded you some Telerik points.
We do apologize for the caused inconvenience and will do our best to address this as soon as possible. Please follow the bug report to get notified about any changes in its status.
Tags
RichTextBox Styling
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or