public static System.Windows.Controls.Image ToInventoryImage(this PokemonId pid) { var img = new System.Windows.Controls.Image { Source = pid.ToInventoryBitmap().LoadBitmap() }; var tt = new ToolTip { Content = pid.ToString() }; img.ToolTip = tt; return(img); }
public static BitmapSource ToInventorySource(this PokemonId pid) { return(pid.ToInventoryBitmap().LoadBitmap()); }