Platform specific margin

How to set platform specific margin for SfTabView? I getting error when I try the code below (I'm posting link because when I paste code it disappears)


1 Reply 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team September 21, 2020 09:49 AM UTC

Hi Almis,

Greetings from Syncfusion.

We have analyzed your query and you can resolve the reported issue by setting type arguments as like below code snippet.

XAML:

 
<tabView:SfTabView.Margin> 
        
                    <OnPlatform x:TypeArguments="Thickness"> 
                        <On Platform="iOS" Value="50,50,50,0" /> 
                        <On Platform="Android" Value="20,20,20,20" /> 
                    </OnPlatform> 
 
            </tabView:SfTabView.Margin> 
Screenshot:



We have created sample based on this, please find the sample from below,

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabViewSample-103520706.zip

Please let us know if you have any other queries.

Regards,
Sakthivel P.
 


Marked as answer
Loader.
Up arrow icon