Toolbar item not showing in xamarin forms

后端 未结 2 1262
一个人的身影
一个人的身影 2020-12-30 05:34

I am pretty much new to Xamarin forms. I am trying to add toolbar items to content page.

I am using IPAD Air as deployment device and used sever iPhone/ipad simulat

2条回答
  •  青春惊慌失措
    2020-12-30 05:51

    Your ToolbarItems will not show if your app does not have a Toolbar. The simplest way to add one is to wrap your page in a NavigationPage

    public static Page GetMainPage ()
    {   
      return new NavigationPage(new SamplePage ());
    }
    

提交回复
热议问题