我正在使用:
在Xamarin中创建一个标签页class UITabbedPages : TabbedPage
{
public UITabbedPages()
{
var landingPage = new FirstPage();
landingPage.Icon = new FileImageSource() { File = FontAwesome.FARocket };
landingPage.Title = "FirstPage";
var location = new 2ndPage();
location.Icon = FontAwesome.FABars;
location.Title = "Location"
this.Children.Add(landingPage);
this.Children.Add(location);
}
}
我使用了两个不同的东西来显示图标,但这些图标都不起作用。