Storing WPF Image Resources
If you will use the image in multiple places, then it’s worth loading the image data only once into memory and then sharing it between all Image elements. To do this, create a BitmapSource as a resource somewhere: <BitmapImage x:Key=”MyImageSource” UriSource=”../Media/Image.png” /> Then, in your code, use something like: <Image Source=”{StaticResource MyImageSource}” /> In my … Read more