Problems with IOS

1 Answer 308 Views
SegmentedControl
Daniel Andrei
Top achievements
Rank 1
Daniel Andrei asked on 14 Nov 2022, 11:23 AM | edited on 14 Nov 2022, 11:26 AM

I`m trying to use the SegmentedControl on IOS but I always get the same error :  "Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadSegmentedControl". (XFC0000)".

I included in the xaml the schema and copied the example from the documentation, in Android works perfectily.

1 Answer, 1 is accepted

Sort by
1
Accepted
Antoan
Telerik team
answered on 14 Nov 2022, 11:44 AM

Hello Daniel,

We are aware of this issue and have a logged bug on the official .NET MAUI GitHub Repository. It seems it is a general issue when creating a custom control. Here is a link to the issue: https://github.com/dotnet/maui/issues/7503

Solution: We have found that setting a x:Name to the control fixes the issue, try it and let me know if the issue is resolved.

Regards,
Antoan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Daniel Andrei
Top achievements
Rank 1
commented on 14 Nov 2022, 11:54 AM

Unfortunatetly the solution didn't work for me, I'm not creating a custom control in a view I only have the SegmentedControl and the error popup on compilation.

Antoan
Telerik team
commented on 14 Nov 2022, 03:03 PM

Hi Daniel,

On my side adding the x:Name to the control works.

Example: 

<telerik:RadSegmentedControl x:Name="segmentControlText"
                                HeightRequest="60"/>
and the namespace is: 
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui" 


Another workaround you can try is using the direct namespace instead of the schema, for example:
xmlns:telerikSegment="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"

<telerikSegment:RadSegmentedControl x:Name="segmentControlText"
                                HeightRequest="60"/>

Regarding the custom control what I meant is: whenever you use any library providing a control that is different from the one the frameworks provides (Microsoft .NET MAUI controls) you are using a custom built control (like Telerik .NET MAUI controls). 

Let me know if this resolves the issue. If not, please send code snippets of the page where the control is defined, or a sample runnable project where I can test and research the case in details.

Daniel Andrei
Top achievements
Rank 1
commented on 14 Nov 2022, 04:34 PM

The last option worked for me.

Thank you

Tags
SegmentedControl
Asked by
Daniel Andrei
Top achievements
Rank 1
Answers by
Antoan
Telerik team
Share this question
or