public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Nov05;component/MainPage.xaml", System.UriKind.Relative)); this.gameCanvas = ((System.Windows.Controls.Canvas)(this.FindName("gameCanvas"))); this.backgroundMusic = ((System.Windows.Controls.MediaElement)(this.FindName("backgroundMusic"))); this.MainMenu = ((System.Windows.Controls.Image)(this.FindName("MainMenu"))); this.btnStart = ((System.Windows.Controls.Button)(this.FindName("btnStart"))); this.btnQuit = ((System.Windows.Controls.Button)(this.FindName("btnQuit"))); this.theBackground = ((System.Windows.Controls.Image)(this.FindName("theBackground"))); this.theShip = ((Nov05.Ship)(this.FindName("theShip"))); this.spLives = ((System.Windows.Controls.StackPanel)(this.FindName("spLives"))); this.MyProgressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("MyProgressBar"))); this.lblLives = ((System.Windows.Controls.TextBlock)(this.FindName("lblLives"))); this.lblGameOver = ((System.Windows.Controls.TextBlock)(this.FindName("lblGameOver"))); }