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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What does the #COMMONSB compiler flag mean?

Thread ID:





145012 Jun 1,2019 03:27 PM UTC Jun 3,2019 09:16 AM UTC Xamarin.Forms 1
Tags: SfPopup
Asked On June 1, 2019 03:27 PM UTC


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

Subburaj Pandian Veluchamy [Syncfusion]
Replied On 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.  
Subburaj Pandian V 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon