Inheritance: INotifyPropertyChanged
示例#1
0
        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;
                    }
                }));
            });
        }
示例#2
0
 public UserProfilePage()
 {
     Model = new UserProfileViewModel(new ApiUser());
     // Expected: System.NotSupportedException
     // Additional information: ImageSourceConverter cannot convert from (null).
     InitializeComponent();
     this.Loaded += OnLoaded;
 }
示例#3
0
 public UserProfilePage()
 {
     Model = new UserProfileViewModel(new ApiUser());
     InitializeComponent();
     this.Loaded += OnLoaded;
 }
示例#4
0
 public UserProfilePage()
 {
     Model = new UserProfileViewModel(new ApiUser());
     InitializeComponent();
     this.Loaded += OnLoaded;
 }