I am trying to load images at run time and each one is selected by means of a switch:
seguimiento.tareaA = new Image();
switch (rowTarea["idTareaTipo"].ToString())
{
case "f7f91a6f-24a2-1034-b505-d1f8671a4f3f"://Seguimiento
Uri uri = new Uri("pack://application:,,,/Resources/Seguim_Chico__0000_6_Pago_Rojo.png");
BitmapImage bmp = new BitmapImage(uri);
seguimiento.tareaA.Source = bmp;
break;
At the moment of running the program, it does not give errors but neither the images are loaded ...
I tried to debug and the only strange thing I found was an error in the Metadata when creating the BitmapImage:
How can I solve the error or make the image show?