using UI MAUI controls in razor page ( Maui Blazor Hybrid )

1 Answer 69 Views
General Discussions
Charles
Top achievements
Rank 1
Charles asked on 03 Aug 2024, 09:45 AM

HI,

I have installed MAUI controls but cannot use them in my MAUI Blazor hybrid razor pages.

Is there a way of getting the razor page to see the MAUi control or are they for xaml application use only?

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 05 Aug 2024, 08:28 AM

Hi Charles,

The Telerik MAUI controls can be used in a Blazor MAUI Hybrid app. I have attached a sample app. Check the MainPage.xaml file. 

Please note that Blazor controls can be used in razor pages (using razor syntax), while the MAUI controls can be used in xaml/cs pages. Here is a link I found for your question: https://stackoverflow.com/questions/74015992/how-to-use-net-maui-controls-in-a-razor-component-in-net-maui-blazor-app. You can also search on internet for questions about the usage of maui and blazor components.

In general, your question is not specific to the usage of Telerik MAUI and Telerik Blazor controls. The question is a general questions how to use Blazor controls and MAUI controls in Blazor Hybrid app. You can check the MAUI and Blazor forums, community, etc. The Telerik MAUI controls are developed to be used in a .NET MAUI applications and all apps that are build on a .NET MAUI framework. The Telerik Blazor controls are developed to be used in a Blazor apps and all apps that support Blazor. So the MAUI Blazor Hybrid apps allows you to use Blazor components in a MAUI app.

Hope the attached app will be of help. I have left comments in the MainPage.xaml file.

Regards,
Didi
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
General Discussions
Asked by
Charles
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or