Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegmentedButton Frame background color not rendering properly after becoming visible (iOS only) #38

Open
jeremywen3 opened this issue Jan 11, 2018 · 3 comments

Comments

@jeremywen3
Copy link

If the SegmentedButton is initially invisible and is made visible the frame background and border colors are not showing until they are clicked on. Appears to be an issue for iOS (tested on simulator)

@lvPokka
Copy link

lvPokka commented Jan 24, 2018

Found fix for this issue, you should add to iOS custom renderer

public override void LayoutSubviews()
{
base.LayoutSubviews();
this.SetNeedsDisplay();
}

@jhitze
Copy link

jhitze commented Apr 6, 2018

I ran into this weird bug too. I had a SegmentedButtonGroup that I wanted hidden at first sight of the ContentPage.

Workaround Steps:

  1. In my XAML, I took out the IsVisible binding that I had.
  2. I my XAML's code-behind, I overrode the OnAppearing() method.
protected override async void OnAppearing()
{
    ButtonGroupSort.SetBinding(SegmentedButtonGroup.IsVisibleProperty, "Property.To.Bind.To")
}

Hope this helps someone else! 😄

@uksreejith
Copy link

I am also facing this issue. Any update on this bug? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants