How can I do this for android inside a workbook Xamarin.Forms.Forms.Init(); var a = new App(); KeyWindow.RootViewController = a.MainPage.CreateViewController();