I add some pictures as ressource to my project (for example I put them into the folder "ressources"). Now I'm using them with:
<Image Name="_ImageName" Width="100" Height="100" Source="Resources\HalloPicA.png"/> <Image Name="_ImageName" Width="100" Height="100" Source="Resources\HalloPicB.png"/> ... and so one.
Imagine now I will change the folder "Resources" to "MyResources". The Problem I have to change it everywhere in the XAML-code. Is there a better way existing? In c#-Code I would declare a member variable from typ string like:
privat _FolderName = "Resources"; and use this member variable in this way:
Image newImage = Image.FromFile(_FolderName +"HalloPicA.png"); Hopefully my problems are clear.