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

NullReferenceException when setting DisplayMode to ImageWithText or Image

Hi!

When I set DisplayMode="ImageWithText" I get a NullReferenceException if I use

<tab:SfTabItem Title="Title">
  <tab:SfTabItem.ImageSource>
      <FontImageSource ... />
  </tab:SfTabItem.ImageSource>
  ....
</tab:SfTabItem>

It works fine when I try
<tab:SfTabItem Title="Title" ImageSource="icon.png">
  ....
</tab:SfTabItem>

 or

<tab:SfTabItem Title="Title">
  <tab:SfTabItem.ImageSource>
    <FileImageSource File="icon.png" />
  </tab:SfTabItem.ImageSource>
  ....
</tab:SfTabItem>


1 Reply

HM Hemalatha Marikumar Syncfusion Team December 3, 2019 11:34 AM UTC

Hi Cesar Martinez, 
  
Greetings from Syncfusion. 
  
We have validated your query, currently we don't have support for “Providing the FontImageSource as ImageSource in tab header. We would like to let you know that we have logged a feature request on this, and it can be tracked through our feedback portal below.   
    
    
This feature will be available in our Volume 1, 2020 release which is expected to be rolled out on March 2020. We appreciate your patience until then.      
  
You can also customize the tab header with “ttf” files, to know more about this please refer the link below. 
  
  
We have prepared a sample based on this, get it from the below link. 
  
  
Regards, 
Hemalatha M. 


Loader.
Live Chat Icon For mobile
Up arrow icon