telerik control is missing in xmlns

1 Answer 77 Views
ItemsControl
Palmsenser
Top achievements
Rank 1
Palmsenser asked on 25 May 2022, 12:38 PM

 via NuGet Telerik.UI.for.Maui 1.0.0 is installed in a Library successfully.

in a Xaml file there is no "clr-namespace" found for Telerik.UI.for.Maui controls.

I also tried: 

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

which "<telerik:" shows nothing

any ideal?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Lance | Manager Technical Support
Telerik team
answered on 25 May 2022, 02:30 PM

Hello Palm,

Visual Studio Preview's IntelliSense-Autocomplete doesn't work with our library at this time. It doesn't even work with Microsoft's MAUI controls either:

You only just need to type the telerik prefix, then the name of the component and it will compile. Just make sure of the following:

  • You are using a .NET MAUI project and the target platform of the project is one we support; Windows, iOS, MacCatalyst or Android (.NET 6 class libraries are not a structured .NET MAUI project and are not officially supported)
  • You have installed the Telerik.UI.for.Maui package (see the instructions here)
  • You have added .UseTelerik() in your MauiProgram.cs (see the instructions here)

Here's an example of an implementation:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
             x:Class="MyApp.MyPage">
    <Grid>
	    <telerik:RadButton Text="My Button" HorizontalOptions="Center" VerticalOptions="Center"/>
    </Grid>
</ContentPage>

Regards,
Lance | Manager Technical Support
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.

Palmsenser
Top achievements
Rank 1
commented on 25 May 2022, 02:42 PM

In stead of adding it into Packages via NuGet, I manually add the related DLL into assemblies of the Lib and it works just fine. :-)
Lance | Manager Technical Support
Telerik team
commented on 25 May 2022, 03:06 PM

đź‘Ť Yep, that should work as long as you can switch between the dependent assemblies required for the specific TFMs (Android, iOS, MacCatalyst, Shared and WinUI). This is why it's not an "officially" supported option but is still possible with manual intervention and bypass our NuGet package's targets.

Just keep in mind that when your class lib is consumed by the MAUI project, that your build targets are also lined up correctly with the top-level project's current TFM.

Tags
ItemsControl
Asked by
Palmsenser
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or