Это мой XAML
<Image Name="StatusImage" Source="/Foo.Bar.Sam;component/Images/YellowDot.png" Stretch="Fill" MaxWidth="12" MaxHeight="12">
Используя VB или C #, как бы изменить Image на RedDot или GreenDot?
Image
код взят из ответ на этот вопрос
string strUri2 = String.Format(@"pack://application:,,,/MyAseemby;component/resources/main titles/{0}", CurrenSelection.TitleImage); imgTitle.Source = new BitmapImage(new Uri(strUri2));