Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Xamarine switch Color Inconsistency

I have added switch with two way binding

when i set the TextStatus to "True" from the constructor it appears as my second toggled with a green circle.when true,
but if i toggle the other button to true, they appears as other toggle(below that). It does not appear a green circle when true.
This happens when only if i set the switches to true from constructor only
only for android devices

  <Switch  IsToggled="{Binding TextStatus, Mode=TwoWay}"  HorizontalOptions="Center" VerticalOptions="Center" ></Switch>
 private bool _textStatus;

        public bool TextStatus
        {
            get { return _textStatus; }
            set
            {
                SetProperty(ref _textStatus, value);
                ChangeAllActiveStatus(_textStatus);
            }
        }

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Please provide complete code , i can't be able to reproduce your issue .

Sign In or Register to comment.