public void Load(ApiUser user) { if (user == null) { return; } User = user; UserProfileViewModel mod = null; Task.Factory.StartNew(() => { mod = this.GetModel(user); }) .ContinueWith(x => { this.Dispatcher.Invoke(new Action(() => { if (mod != null) { this.Model = mod; } })); }); }
public UserProfilePage() { Model = new UserProfileViewModel(new ApiUser()); // Expected: System.NotSupportedException // Additional information: ImageSourceConverter cannot convert from (null). InitializeComponent(); this.Loaded += OnLoaded; }
public UserProfilePage() { Model = new UserProfileViewModel(new ApiUser()); InitializeComponent(); this.Loaded += OnLoaded; }