Answer the question
In order to leave comments, you need to log in
Download image from Resources?
Is there an easier option?
Found only this one
const string UriPack = "pack://application:,,,";
readonly string ComponentUri = "/" + Assembly.GetExecutingAssembly().GetName().Name + ";component/";
BitmapImage bmp = new BitmapImage(new Uri(UriPack + ComponentUri + "Resources/scheme (3).png", UriKind.Absolute));
WriteableBitmap writeableBmp = new WriteableBitmap(bmp);
image.Source = writeableBmp;
Answer the question
In order to leave comments, you need to log in
var bi = new BitmapImage(new Uri("pack://application:,,,/IMAGES/scheme (3).png"));
image.Source = bi;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question