protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new AllWidgetsGame(); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
public AllWidgetsGame() { Instance = this; _graphics = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = 1200, PreferredBackBufferHeight = 800 }; Window.AllowUserResizing = true; IsMouseVisible = true; }