private void DeckLoader_Load(object sender, EventArgs e) { // Default Image GamesRepository proxy = new GamesRepository(); Game mygame = proxy.Games[GameIndex]; try { // Retrieve Card Image System.Windows.Controls.Image CardImage = new System.Windows.Controls.Image(); BitmapImage src = new BitmapImage(); src.BeginInit(); src.UriSource = mygame.GetCardBackUri(); src.CacheOption = BitmapCacheOption.OnLoad; src.EndInit(); mtgPicture1.Image = SourceConvert.BitmapSourceToBitmap(src); } catch (Exception ex) { MessageBox.Show(ex.Message); } }