Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created March 24, 2021 23:49
Show Gist options
  • Save Char0394/16ded9c300543d3caaf05cd8baaac554 to your computer and use it in GitHub Desktop.
Save Char0394/16ded9c300543d3caaf05cd8baaac554 to your computer and use it in GitHub Desktop.
public class CustomTransitionNavPage : SharedTransitionNavigationPage
{
public CustomTransitionNavPage()
{
//Code to make the NavigationPage translucent, if you don't want that you can remove it
On<iOS>().SetIsNavigationBarTranslucent(true);
BarBackgroundColor = Color.Transparent;
BarTextColor = Color.Black;
On<iOS>().SetHideNavigationBarSeparator(true);
}
public bool IgnoreLayoutChange { get; set; } = false;
protected override void OnSizeAllocated(double width, double height)
{
if (!IgnoreLayoutChange)
base.OnSizeAllocated(width, height);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment