tags:

views:

127

answers:

1

This is my XAML

<Image Name="StatusImage" Source="/Foo.Bar.Sam;component/Images/YellowDot.png" Stretch="Fill" MaxWidth="12" MaxHeight="12">

Using VB or C#, how would I change the image to RedDot or GreenDot?

+1  A: 

code taken from answer to this question

string strUri2 = String.Format(@"pack://application:,,,/MyAseemby;component/resources/main titles/{0}", CurrenSelection.TitleImage);
imgTitle.Source = new BitmapImage(new Uri(strUri2));
Muad'Dib
If you find a duplicate question, then you should comment and vote to close rather than posting an answer.
ChrisF
thanks for the tip. After reviewing the other q, I don't think its a duplicate question. The other question was about image resizing.
Muad'Dib