Completed
Last Updated: 09 Aug 2022 13:16 by ADMIN
Release LIB 2022.2.627 (27 Jun 2022)
Patrick
Created on: 29 Jul 2022 22:25
Category: UI for WPF
Type: Bug Report
0
Cannot find resource named 'RepeatButtonStyle' design time exception in Office2019 theme (NoXaml)

Latest version of wpf ui on NET6 I receive this error with Office2019 theme, also tested with Office2016 theme and there is no error.

System.Windows.Markup.XamlParseException: "Die Angabe eines Werts für "System.Windows.Markup.StaticResourceHolder" führte zu einer Ausnahme."
Exception: Die Ressource mit dem Namen "RepeatButtonStyle" kann nicht gefunden werden. Bei Ressourcennamen wird die Groß- und Kleinschreibung berücksichtigt.

Diese Ausnahme wurde ursprünglich von dieser Aufrufliste ausgelöst:
    System.Windows.StaticResourceExtension.ProvideValueInternal(System.IServiceProvider, bool)
    System.Windows.StaticResourceExtension.ProvideValue(System.IServiceProvider)
    MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(System.Windows.Markup.MarkupExtension, System.IServiceProvider)

 

I have a RadComboBox which is causing the error. When I remove this element, error is gone. Error only happens when I click on the drowdown. The error happens before dropdown open.

I use this files
<ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/System.Windows.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />

6 comments
ADMIN
Vicky
Posted on: 09 Aug 2022 12:56

Hi Patrick,

Glad to hear I was able to help!
I remain at your disposal in case any further questions arise.

Best Regards,
Vicky
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
Posted on: 09 Aug 2022 11:39

Hello Vicky,

tried LIB 2022.2.808 and its working. Found out, the error was only in Telerik.Windows.Controls.RibbonView.xaml.

Thx for helping!

Best regards

Patrick

ADMIN
Vicky
Posted on: 09 Aug 2022 08:15

Hello Patrick,

Thanks for the provided project. I used it with the UI for WPF R2 2022 SP1 version of the assemblies and with it I was able to reproduce the exception.

The development team has been working on improvements regarding missing or duplicate xaml resources in the generic files of the themes since this version. I tested with the LIB versions after the above listed Service Pack and can assure you that with the first one onward, the exception is no longer reproducible.

My recommendation for you is to download and install the latest LIB and let me know if there is still a problem on your side.

Best Regards,
Vicky
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Patrick
Posted on: 08 Aug 2022 17:00
Your sample is working, mine not. I have uploaded it. You can test. If you use 2016 theme it's working (change it in Resources\telerik.xaml), but 2019 theme not... I don't know why. But I start my app in a different way like you.
Attached Files:
ADMIN
Vicky
Posted on: 03 Aug 2022 08:54

Hi Patrick,

Thanks for the provided resources.

I used them to create a sample application with the Office2019 theme and the RadComboBox but could not reproduce the described behavior.
Could you please provide some more information on whether this is the complete list of references in your app? Also, is there a custom style for the RadComboBox?

On a side note, the RepeatButtonStyle is part of the MS styles which live in the System.Windows.xaml file. This button (and its style) is widely used in the other assemblies so it is best if this file is merged first before the Telerik.Windows.Controls.xaml and others.

In case it would be more convenient for you to modify the project I created and send it back, I am attaching it to my reply.
I am looking forward to your reply!

Best Regards,
Vicky
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Attached Files:
Patrick
Posted on: 29 Jul 2022 22:27

Sorry, it doesnt happen in design time, it happens in the compiled app after clicking on RadCombobox.

 

Combobox looks like:

<telerik:RadComboBox x:Name="xxx" HorizontalAlignment="Right" IsEditable="False" VerticalAlignment="Top" Width="167" EmptyText="--" DropDownWidth="Auto" >
                    <telerik:RadComboBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <VirtualizingStackPanel />
                        </ItemsPanelTemplate>
                    </telerik:RadComboBox.ItemsPanel>
                    <ListBoxItem Content="80"/>
                    <ListBoxItem Content="100"/>
                </telerik:RadComboBox>