Maui Blazor Hybrid Blazor Tab control not showing correct Style for Tab between Selected and Not Selected tabs - from 195223

I am also having issue with Blazor Tab control not showing correct Style for Tab between Selected and Not Selected tabs


Am I missing any steps ?


1 Reply

VR Vijay Ravi Syncfusion Team November 20, 2024 01:48 PM UTC

Hi Praveen D,


We have prepared the MAUI blazor hybrid tab sample by referring the below shared UG documentation. Tab component rendered and tab selected as expected. Refer the below shared code snippets and sample for your reference. Kindly try the below shared sample.

Getting started UG link: Getting Started with MAUI Blazor App in Visual Studio | Syncfusion

[MauiProgram.cs]
 

using Syncfusion.Blazor;

namespace MAUITest;

 

public static class MauiProgram

{

public static MauiApp CreateMauiApp()

{

var builder = MauiApp.CreateBuilder();

builder

.UseMauiApp<App>()

.ConfigureFonts(fonts =>

{

fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");

})

;

        builder.Services.AddSyncfusionBlazor();

        builder.Services.AddMauiBlazorWebView();

 

#if DEBUG

builder.Services.AddBlazorWebViewDeveloperTools();

builder.Logging.AddDebug();

#endif

 

return builder.Build();

}

}

 


[Imports.razor]
 

@using Syncfusion.Blazor

@using Syncfusion.Blazor.Navigations



[index.html]
 

<head>

    <meta charset="utf-8" />  

    <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>

</head>


[Home.razor]
 

@page "/"

 

@using Syncfusion.Blazor.Navigations

 

<SfTab>

    <TabItems>

        <TabItem Content="Twitter is an online social networking service that enables users to send and read short 140-charactermessages called tweets.Registered users can read and post tweets, but those who are unregistered can only readthem.Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in SanFrancisco and has more than 25 offices around the world.Twitter was created in March 2006 by Jack Dorsey,Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity,with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billionsearch queries per day.">

            <ChildContent>

                <TabHeader Text="Twitter"></TabHeader>

            </ChildContent>

        </TabItem>

        <TabItem Content="Facebook is an online social networking service headquartered in Menlo Park, California. Its website waslaunched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students EduardoSaverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.">

            <ChildContent>

                <TabHeader Text="Facebook"></TabHeader>

            </ChildContent>

        </TabItem>

        <TabItem Content="WhatsApp Messenger is a proprietary cross-platform instant messaging client for smartphones that operatesunder a subscription business model.It uses the Internet to send text messages, images, video, user location andaudio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a userbase of up to one billion,[10] making it the most globally popular messaging application.WhatsApp Inc., based inMountain View, California, was acquired by Facebook Inc.on February 19, 2014, for approximately US$19.3 billion.">

            <ChildContent>

                <TabHeader Text="Whatsapp"></TabHeader>

            </ChildContent>

        </TabItem>

    </TabItems>

</SfTab>


Sample attached as Zip file.

Don't hesitate to get in touch if you require further help or more information.

Regards,

Vijay


Attachment: Blazor_MAUI_Tab_sample_2d7e2c62.zip

Loader.
Up arrow icon