BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
Hello, with the latest release of dotnet, there is a "new" project: .NET MAUI Blazor Hybrid and Web App.
Once created, there is 3 projects in the solution with a MAUI Blazor Hybrid app and a blazor web app and a shared library.
Is it possible to use syncfusion in the shared library and be rendered in both the hybrid and web app?
Thanks for your time.
Hi Guillaume Bodson,
Here’s how you can integrate Syncfusion Blazor components into a .NET 9 MAUI Blazor Hybrid and Web App project:
Project Overview
Steps to Add Syncfusion Blazor Components
@using Syncfusion.Blazor.Navigations
<SfAccordion>
<AccordionItems>
<AccordionItem Header="Margeret Peacock" Content="Margeret Peacock was born on Saturday , 01 December 1990. Now lives at Coventry House Miner Rd., London,UK. Margeret Peacock holds a position of Sales Coordinator in our WA department, (Seattle USA). Joined our company on Saturday , 01 May 2010"></AccordionItem>
<AccordionItem Header="Laura Callahan" Content="Laura Callahan was born on Tuesday , 06 November 1990. Now lives at Edgeham Hollow Winchester Way, London,UK. Laura Callahan holds a position of Sales Coordinator in our WA department, (Seattle USA). Joined our company on Saturday , 01 May 2010"></AccordionItem>
<AccordionItem Header="Albert Dodsworth" Content="Albert Dodsworth was born on Thursday , 19 October 1989. Now lives at 4726 - 11th Ave. N.E., Seattle,USA.Albert Dodsworth holds a position of Sales Representative in our WA department, (Seattle USA). Joined our company on Friday , 01 May 2009"></AccordionItem>
</AccordionItems>
</SfAccordion> |
Configure for Blazor Web App
using Syncfusion.Blazor;
....
builder.Services.AddSyncfusionBlazor();
.... |
<link rel='nofollow' href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script> |
Configure for .NET MAUI App
using Syncfusion.Blazor;
....
builder.Services.AddSyncfusionBlazor(); |
<link rel='nofollow' href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script> |
Running the Application
I have attached the sample below. If you have any additional questions, feel free to reach out. We're here to assist!
Regards,
Arun Kumar R
Thank you a lot for the very complete answer! It is exactly what I was looking for.
Hi Guillaume Bodson,
Thanks for the feedback and get back to us if you need any further assistance.
Regards,
Arun Kumar R