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

segmented control FontColor and clear selection

Thread ID:





150412 Jan 6,2020 02:27 PM UTC Jan 13,2020 10:33 AM UTC Xamarin.Android 3
Tags: SfSegmentedControl
Asked On January 6, 2020 02:27 PM UTC

Hi can you please check your example is not working
segmentedControl.FontColor = Color.Red;

and please is it possible to unselect an item if i clck on it when it is selected? i need to be able to have no one item selected

Hemalatha Marikumar [Syncfusion]
Replied On January 8, 2020 02:37 AM UTC

Hi Luca,


Greetings from Syncfusion.


We would like to let you know that currently we are revamping our UG document of Native platforms (Xamarin.Android and Xamarin.iOS) SegmentedControl. Changes will be reflected in our Volume 1 Service Pack 1 2020 release which is scheduled to be rolled by end of January 2020.


Query : FontColor is not Working:


We were able to reproduce the same and currently we have a workaround to resolve the same by setting FontSize of SegmentedControl as per in below code snippet


Code Snippet [C#]:

protected override void OnCreate(Bundle savedInstanceState)



            SfSegmentedControl segmentedControl = new SfSegmentedControl(this);

            segmentedControl.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, 300);

            segmentedControl.SelectionTextColor = Color.Green;

            segmentedControl.FontColor = Color.Red;

            segmentedControl.FontSize = 15;

            List<SfSegmentItem> clothList = new List<SfSegmentItem>()


                new SfSegmentItem(){Text = "Item 1"},

                new SfSegmentItem(){Text = "Item 2"}




            segmentedControl.ItemsSource = clothList;

            segmentedControl.SegmentHeight = 60;

            segmentedControl.SelectionIndicatorSettings = new SelectionIndicatorSettings()


                Position = SelectionIndicatorPosition.Bottom,

                StrokeThickness = 2



            segmentedControl.VisibleSegmentsCount = 3;

            segmentedControl.DisplayMode = SegmentDisplayMode.Text;




Query : is it possible to unselect an item if i clck on it when it is selected?


Currently we don’t have a toggle option selection in SegmentedControl. Once SegmentedItem has been selected that selection on same item has been ignored.


Query: i need to be able to have no one item selected


If your requirement is to clear the entire the selection on segmented control then, it has been achieved by setting – 1 as SelectedIndex property of SegmentedControl.


Please check and let us know if you need any further assistance.



Hemalatha M.



Replied On January 10, 2020 12:56 PM UTC

hi, thanks.
it is not clear what i should do.
 i put this

 segmentedControl.FontColor = Color.Red;

segmentedControl.FontSize = 15;

 but it doesn't work.


Hemalatha Marikumar [Syncfusion]
Replied On January 13, 2020 10:33 AM UTC

Hi Luca, 
We have validated your query and we would like to let you know that the SegmentedControl FontColor property is working fine at our end. Please find the tested sample from the below location. 
As we can't know your exact application scenario and couldn't replicate the issue in your case. Could you please let us know whether you are populating the data source as String or CustomViews in your application? If possible, can you please revert us by modifying the sample based on your application along with replication procedure or provide full code snippet for segmented control. This will be helpful for us to provide you better solution at the earliest.  
Hemalatha M. 


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