Segmented Control Plugin

KarthikRamKarthikRam USMember ✭✭
edited January 2017 in Xamarin.Forms

I am trying to change the color of segmented control. But, its color is not changing. I have used SegmentedControl.FormsPlugin, which is working fine in both iOS and Android. In order to change the color in segemented control, I used following code.

<controls:SegmentedControl TintColor="#009FDF" ValueChanged="OnButtonPressed" x:Name="SegControl">
<controls:SegmentedControl.Children>
<controls:SegmentedControlOption Text="NEWS" />
<controls:SegmentedControlOption Text="TIPS" />
</controls:SegmentedControl.Children>
</controls:SegmentedControl>

I have also tried changing in .cs file and then, checked. Yet the tint color in Android is not changing. Please suggest and advice.

Answers

  • KarthikRamKarthikRam USMember ✭✭
    edited January 2017

    m

  • Hi !

    Had the same issue and it seems to come from the last version (1.2.4). Just downgrade your nuget to the previous version (1.2.3, uploaded the same day by the owner). Hope it helps.

    Have a nice day !

  • AlezhukAlezhuk USMember ✭✭

    Did you added SegmentedControlRenderer.Init() in both platforms?

Sign In or Register to comment.