LoginSignup
10
7

More than 5 years have passed since last update.

[Xamarin.Forms] Navigation ナビゲーションバーの非表示、右上にボタン追加

Last updated at Posted at 2015-10-26

画面遷移で良く使うNavigationですが、
よく使いそうな機能をメモしておきます。

// ナビゲーションバーを非表示にする(thisはPageオブジェクト)
NavigationPage.SetHasNavigationBar(this, false);
// ナビゲーションバーの右上にボタンを追加する。
ToolbarItems.Add(new ToolbarItem("Name", "icon.png", async () =>
{
    // 何か処理を記述
}));
10
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
7