Now in my MainView.xaml
<Image Grid.Row="1" Source="{Binding Path=map.MapImage}"></Image> And in MapViewModel.cs
public BitmapImage MapImage { get { return Map.MapComb; } set { Map.MapComb = value; OnPropertyChanged("MapImage"); } } The code works as it should (but I don’t need it), I can stuff any image file in MapImage and it will be displayed on the form.
A need in MapViewModel.cs
public Image MapImage //System.Drawing.Image { get { return Map.MapComb; } set { Map.MapComb = value; OnPropertyChanged("MapImage"); } } What should be in MainView.xaml ? Accepted option with edits in MapViewModel.cs and anywhere. MAIN draw a picture from a variable on the form, without saving it anywhere on the disk.
PS: I try to make MVVM application.