public UserControl GetRender(ViewModel parent, Response r) { string filename = Path.GetTempFileName(); r.SaveToFile(filename); ImageViewModel vm = new ImageViewModel(parent, filename); return new ImageRender(vm); }
public ImageRender(ImageViewModel vm) { InitializeComponent(); DataContext = vm; }