Search

'content'에 해당되는 글 1건

  1. 2012.04.18 Content 에 URI 로 이미지 넣기

Content 에 URI 로 이미지 넣기

C#/WPF 2012. 4. 18. 12:36 Posted by 퓨어레드

Uri 와  BitmapImage 를 써서 Content 에 이미지 넣기..

 

Uri uri = new Uri ("http://purred.kr/images/center/main.gif");

BitmapImage bitmapImage = new BitmapImage (uri);

Image img = new Image ();
img.Source = bitmapImage;

Content = img;