RadToolbarResourceDictionary not found after updating to version 11

2 Answers 9 Views
DataGrid Toolbar
Nathan
Top achievements
Rank 1
Nathan asked on 21 May 2025, 08:04 PM

We have this in our project to customize some tool bar items. It is working in 10.1.0, but no longer works in version 11.0.0

xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

 

<ResourceDictionary.MergedDictionaries>
<telerik:RadToolbarResourceDictionary />
</ResourceDictionary.MergedDictionaries>
Didi
Telerik team
commented on 22 May 2025, 05:00 AM

Hi Nathan,

Could you please share more details, send files or a sample repro in which the issue occurs? I am asking for this as I want to review the exact setup you have and reproduce the behavior on my side. 

Also do you use Telerik Theming in the project? 
Nathan
Top achievements
Rank 1
commented on 22 May 2025, 10:09 PM

I'm attaching a sample project with the error. 

We are not using the Telerik Theming.

2 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 23 May 2025, 09:26 AM

Hello Nathan,

With the new theming mechanism introduced in version 11.0.0 of Telerik UI for .NET MAUI, the way toolbar resources are referenced has changed. The RadToolbarResourceDictionary is no longer available under the original namespace. Instead, you should access the toolbar resources using the following namespace:

xmlns:telerikToolbar="clr-namespace:Telerik.Maui.Controls.Toolbar;assembly=Telerik.Maui.Controls"

Then, update your merged dictionaries like this:

<ResourceDictionary.MergedDictionaries>
    <telerikToolbar:RadToolbarResourceDictionary />
</ResourceDictionary.MergedDictionaries>

Please let me know if everything works correctly after applying the change.

Regards,
Masha
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.

Nathan
Top achievements
Rank 1
commented on 23 May 2025, 01:43 PM

It is still giving me an error when I build the project. 

Error XFC0000 XamlC: Cannot resolve type "clr-namespace:Telerik.Maui.Controls.Toolbar;assembly=Telerik.Maui.Controls:telerikToolbar:RadToolbarResourceDictionary".

0
Masha
Telerik team
answered on 23 May 2025, 02:47 PM

Hello Nathan,

Thank you for your patience, and I’d like to sincerely apologize for the confusion caused by my previous message.

I mistakenly provided the wrong resource dictionary in my earlier response. The correct resource to include for the Telerik Toolbar is:

 <ResourceDictionary.MergedDictionaries>
     <telerikToolbar:RadToolbarResources />
 </ResourceDictionary.MergedDictionaries>

The previously mentioned RadToolbarResourceDictionary is incorrect and does not exist, which is what triggered the XFC0000 build error you encountered.

Additionally, please make sure the style key for DataGridSearchPanel_EntryToolbarItemView_Style is updated as follows:

BasedOn="{StaticResource ToolbarItemViewStyle}"

For your reference, I’ve attached the MainPage.xaml file from the project with these corrections applied. This should help you verify the implementation in your project.

Please don't hesitate to reach out if you have any further questions or need any additional assistance.

Regards,
Masha
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.

Tags
DataGrid Toolbar
Asked by
Nathan
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or