xamarin/Xamarin.Forms

[Bug] Shell treats Show/Hide Flyout Differently from TabBar and NavBar

Offen

#5.940 geöffnet am 17.04.2019

 (3 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
4.0.0a/shell :shell:e/2 :clock2:good first issuehelp wantedinactivet/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

From anywhere in the app you can toggle the FlyoutBehavior, but the same cannot be done for the bottom tabs or navigation bar which only seem to work at the page level.

Shell.SetFlyoutBehavior(Shell.Current, Xamarin.Forms.FlyoutBehavior.Disabled);
Shell.SetTabBarIsVisible(Shell.Current, true);

The latter call above won't do anything unless the bindable object is the page.

https://www.screencast.com/t/UgWadR6WTu1X

Expected Behavior

I should be able to call the static method SetTabBarIsVisible as well as SetNavBarIsVisible and see it applied globally.

I should be able to also continue doing this for each page.

Basic Information

  • Version with issue: 4.0-pre8
    • iOS: 12.1

Didn't test on Android.

Reproduction Link

https://github.com/davidortinau/Xappy

Contributor Guide