Forum Xamarin.Android

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.