I am having set of images and those paths are defined in a xaml file like below
<BitmapImage
x:Key="LoginLogo"
UriSource="pack://application:,,,/AssemblyName;component/Resources/LoginLogo.png" />
And in my view.xaml am having an image control and Source property is bound with View Model.
Property in view model :
private BitMapImage _imageSource
public BitmapImage ImageSource
{
get { return (_imageSource); }
set { this.SetValue(_imageSource, value); }
}
Now i need to set value to Image Source . How to set this.
<Image Source="{Binding ImageSource}">? Besides that, what's the relation between your view model's ImageSource property and the XAML-defined BitmapImage resource?