NavigationPage.Navigation.InsertPageBefore(ContentPage)のフローを使用するページにナビゲートすると、NavigationPage.PopAsync()。ConfigureAwait(false)ページが消えますが、プッシュ/ポップを使用すると、ツールバーは常に残ります。これはiOSでのみ発生します。ナビゲーションページのInsertPageBeforeメソッドを使用しているときにツールバーアイテムがiOSで消える
ナビゲーションページは、ナビゲーションページが詳細部分として機能するマスター詳細ページと一緒に、アプリケーションレベルにスコープされたグローバルです。それはそうと
追加このようなページに移動ToolbarItemが
var toobaritemMenu = new ToolbarItem
{
Icon = "Screenshot",
Command = new Command(() => Device.BeginInvokeOnMainThread(() => App.MasterNavigation.PushAsync(new ContentPage(), false)))
};
App.MasterNavigation.ToolbarItems.Add(toobaritemMenu);
のiOS
Device.BeginInvokeOnMainThread(() => App.MasterNavigation.Navigation.InsertPageBefore(new ContentPage(), App.MasterNavigation.CurrentPage));
Device.BeginInvokeOnMainThread(() => App.MasterNavigation.PopAsync().ConfigureAwait(false));
に消えてツールバー項目原因この理由はありますそれはAndroid上で動作するので矛盾します。