728x90
728x170

프로젝트에 특정 이미지 파일을 추가한 후

아래 처럼 사용하면 접근할수 있습니다.

 

* 이미지 파일명 (keisoft_textlogo.jpg)

 

        public MainWindow()

        {

            InitializeComponent();

 

            Title = "Show My Face";

            Uri uri = new Uri("pack://application:,,,/keisoft_textlogo.jpg");

            BitmapImage bitmap = new BitmapImage(uri);

            Image img = new Image();

            img.Source = bitmap;

            img.Stretch = Stretch.Fill;

            Content = img;

        }

 

 

728x90
그리드형
Posted by kjun
,