Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     hero = SuperHeroe.GetSample();
     NombreTextBlock.DataContext     = hero;
     EnemigoTextBlock.DataContext    = hero;
     VengadoresTextBlock.DataContext = hero;
     FotoImage.DataContext           = hero;
 }
Пример #2
0
        public static SuperHeroe GetSample()
        {
            SuperHeroe heroe = new SuperHeroe();

            heroe.Nombre   = "Daredevil";
            heroe.Enemigo  = "Kingping";
            heroe.Otrafoto = @"https://dam.smashmexico.com.mx/wp-content/uploads/2018/08/27150601/daredevilbio_portada.jpg";
            heroe.Vengador = false;

            return(heroe);
        }