/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public GamePage(string launchArguments) { this.InitializeComponent(); myAd.Loaded += myAd_Loaded; myAd.GotFocus += myAd_GotFocus; this.LostFocus += GamePage_LostFocus; // Create the game. _game = XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, this); _game.Exiting += _game_Exiting; myAd.IsEnabled = false; //myAd.Refresh(); }