(i) An application resource B1.Source = new BitmapImage( new Uri(@"/FootyWhatIf;resource/Images/background.png", UriKind.RelativeOrAbsolute));
Note that the application name is included (FootyWhatIf), it is tagged as a component. This requires that the file be configured as a Resource in its Build Action property). (ii) An application resource B1.Source = new BitmapImage( new Uri(@"/FootyWhatIf;component/Images/background.png", UriKind.RelativeOrAbsolute));
it is tagged as a component. This also requires that the file be configured as a Resource in its properties). Programmatically, resource files are access using Application.GetResourceStream, as when loading XML.