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

What does the #COMMONSB compiler flag mean?

Hello,

I'm pretty new to Syncfusion Xamarin.Forms controls and I'm following the samples provided in the official github repo, there many of the code samples contains the #if COMMONSB compiler flag validation, I'm not understanding where is defined and what is the purpose of it, Could you please help me to understand this?

For instance: https://github.com/syncfusion/xamarin-demos/blob/245d3074f3356d283e29a56e1fbe63a921011ed8/Forms/PopupLayout/PopupLayout/Samples/ViewModel/TicketBookingViewModel.cs#L355

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team June 3, 2019 09:16 AM UTC

Hi Jorge, 
 
Thank you for contacting Syncfusion support. 

In our Syncfusion Xamarin demos, we have individual and common SampleBrowser samples. In individual sample browser, loaded only specific control samples, for example Popup, DataGrid, Chart, etc. In common / main SampleBrowser, loaded all the Xamarin controls along with its individual samples.

Regarding the mentioned condition code (COMMONSB), we have maintained different folder structure for images in the common SampleBrowser and individual SampleBrowser, so that handled with this condition to load images in the individual and common SampleBrowser.

In the latest updated SampleBrowser, we have removed this conditional code and it will be updated in our Volume 2 main release which is expected to available by end of this month June 2019.  
 
We hope this helps. Please let us know, if you would require any further assistance.  
 
Regards,
Subburaj Pandian V 


Loader.
Live Chat Icon For mobile
Up arrow icon