Schema Error Telerik Type cannot be Resolved
Environment
Product | Progress® Telerik® UI for .NET MAUI |
Product Version | 4.0.0 |
Description
When I try to use the Telerik UI for .NET MAUI ComboBox component, I get the XamlC error XFC0000: Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:control".
How can I handle this issue?
Steps to Reproduce
Start using a custom controls library and add a common schema
namespace.
Error Message
XamlC error XFC0000: Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:control".
Cause
This common schema
error is not related to the Telerik UI for .NET MAUI controls, but is a logged issue that stems from the .NET MAUI framework when the customer uses custom controls, that is, controls that are not provided by Microsoft .NET MAUI.
Solution
To work around this undesired behavior, add a x:Name
to the control, for example:
<telerik:RadComboBox x:Name="combo"/>
An alternative approach is instead of using the schema, to add the namespace of the control:
<telerikCombo:RadComboBox/>
Then, add the common telerik
namespace:
xmlns:telerikCombo="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"