Skip to main content

Set IMAGE Source manuel in WPF

  • October 31, 2013
  • 3 replies
  • 0 views

Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

3 replies

Chris Glazier
Forum|alt.badge.img+2

Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

If you are looking for the COBOL syntax equivalent it would be:

  set imageArtike1::Source to new type BitmapImage(new type Uri(Bild))

Where Bild is a string containing the uri of the bitmap that you want to use.


Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

Thats it what I Need !


Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

In Visual COBOL, you don't actually need the "type" qualifier after the "new" operator - it's implicit.

So you can just use:

  set imageArtike1::Source to new BitmapImage(new Uri(Bild))