我想在xamarin.forms中为我的移动应用程序提供一个工具栏.我浏览了网络并了解了工具栏,但我认为它适用于Windows手机而不是Android.对此问题的任何帮助都将深表感谢.Ps:我也需要选项卡页面中的工具栏.
这是我的一段代码:
//main page
namespace eSewaXamarin
{
public class App:Application
{
public App ()
{
MainPage = new TabbedPageClass ();
}
protected override void OnStart ()
{
// Handle when your app starts
}
protected override void OnSleep ()
{
// Handle when your app sleeps
}
protected override void OnResume ()
{
// Handle when your app resumes
}
}
}
//tabbed page
namespace eSewaXamarin
{
public class TabbedPageClass: TabbedPage
{
public TabbedPageClass ()
{
//this.SwipeEnabled = true;
ToolbarItems.Add(new …Run Code Online (Sandbox Code Playgroud)