コード例 #1
0
 private void PopulateBio(AuthorInfos infos, string imageLink)
 {
     ContentBio.Text       = infos.bio;
     LifeTime.Text         = infos.birth + " - " + infos.death;
     Job.Text              = infos.job;
     MainQuote.Text        = infos.quote;
     AuthorImage.UriSource = new Uri(imageLink);
 }
コード例 #2
0
        private async void GetPageData(string name, string url)
        {
            ShowAuthorBioLoadingIndicator();

            PopulateHeader(name);
            AuthorInfos infos = await DAuthorController.LoadData(url);

            BindAuthorDataContext(infos);

            HideAuthorBioLoadingIndicator();
        }
コード例 #3
0
        private async void PopulateDetailView(string url, string imageLink)
        {
            if (imageLink.Length < 1)
            {
                imageLink = "ms-appx:///Assets/Icons/gray.png";
            }

            ShowAuthorBioLoadingIndicator();

            AuthorInfos infos = await DAuthorController.LoadData(url);

            HideAuthorBioLoadingIndicator();

            if (infos != null)
            {
                PopulateBio(infos, imageLink);
                ShowBio();
            }
            else
            {
                ShowNoBioView();
            }
        }
コード例 #4
0
 private void BindAuthorDataContext(AuthorInfos authorInfos)
 {
     AuthorInfos.DataContext = authorInfos;
 }