private async void HandleAuthen(ContentDialog sender, ContentDialogClosingEventArgs args) { this.SetupMenu(); UserInfo.Visibility = Visibility.Visible; meInfo = await this.GetInfoMe(); var avatarBrush = new ImageBrush() { ImageSource = new BitmapImage(new Uri(meInfo.avatar_url)) }; btnUserInfo.Content = meInfo.username; AvatarE.Fill = avatarBrush; MainFrame.Navigate(typeof(DashBoard), meInfo); }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); Models.SoundCloudMe Me = e.Parameter as Models.SoundCloudMe; this.GetData(Me.id); this.GetFavorites(Me.id); var avatarBrush = new ImageBrush() { ImageSource = new BitmapImage(new Uri(Me.avatar_url)) }; AvatarE.Fill = avatarBrush; tbUserName.Text = Me.username; tbUserLink.Text = Me.permalink; }