We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Set SfTabItem.ImageSource in Style

Hi,

Is it possible in MAUI to set the SfTabItem.ImageSource in Styles.xaml with Key or without so it will be global set and i don't have to set it in the ContentPage file? How?


<SyncfusionTabView:SfTabItem x:Name="tabHome" Header="Home">

<SyncfusionTabView:SfTabItem.ImageSource>
<FontImageSource Glyph="{StaticResource HomeIcon}" FontFamily="FontSolid" Size="20" Color="Black" />
</SyncfusionTabView:SfTabItem.ImageSource>
</SyncfusionTabView:SfTabItem>



Thanks,

Jassim



1 Reply

VV Vijayakumar Viswanathan Syncfusion Team October 18, 2022 09:16 AM

Hi Jassim,

 

Query: Is it possible in MAUI to set the SfTabItem.ImageSource (FontImageSource ) in Styles.xaml

 

Since Framework itself doesn't have this support, It is not possible in MAUI to set the SfTabItem.ImageSource (FontImageSource ) in Styles.XAML page.

 

Please let us know if you need any other details.

 

Regards,

Vijayakumar V


Loader.
Live Chat Icon For mobile
Up arrow icon