I am encountering an issue with my WinUI project while using the Telerik RadMap control. Specifically, I am receiving the following error:
"Cannot find a Resource With Name/Key RadExpanderStyle."
1 Answer, 1 is accepted
0
Accepted
Stenly
Telerik team
answered on 18 Jun 2024, 12:35 PM
Hello Ibra,
In order for the RadMap control to be visualized without raising the exception that you shared, merge the Generic.xaml resource dictionary in the Resources collection of the App.xaml file as shown below:
<Application.Resources><ResourceDictionary><ResourceDictionary.MergedDictionaries><XamlControlsResourcesxmlns="using:Microsoft.UI.Xaml.Controls" /><ResourceDictionarySource="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/><!-- Other merged dictionaries here --></ResourceDictionary.MergedDictionaries><!-- Other app resources here --></ResourceDictionary></Application.Resources>
I hope the provided information will be of help to you.