我在Visual Studio 2015中创建了一个新的空白应用(Xamarin.Forms Portable)项目,并修改了App.cs以获取“汉堡菜单”:
public class App : Application
{
public App()
{
var masterPage = new ContentPage()
{
Content = new Label { Text = "Hello from Master!"},
Title = "Master Page"
};
var detailPage = new ContentPage()
{
Content = new Label { Text = "Hello from Detail!" },
Title = "Detail Page"
};
var mainPage = new MasterDetailPage()
{
Master = masterPage,
Detail = detailPage,
Title = "Main Page"
};
// The root page of your application
MainPage = mainPage;
}
. . .
}
一切都运作良好,但我如何自定义这四个东西:
1) 隐藏/更改箭头
2) 隐藏/更改图标
3) 隐藏/更改标题文本
4) 隐藏整个工具栏
actionBar
得到了空值。我做错了什么? - Joseph Katzman