public TopperPage() { InitializeComponent(); var app = App.Current as App; topper = app.selectedTopper; //Displays the details string say1 = topper.Say; webBrowserSay.NavigateToString(say1); // show topper's details in page nameTextBlock.Text = topper.Name; percentileTextBlock.Text = "Percentile : " + topper.Percentile; yearTextBlock.Text = "Year : " + topper.Year; //saysTextBlock.Text = topper.Say; //For displaying image BitmapImage image = new BitmapImage(); string photo = topper.Photo; image.UriSource = new Uri(photo); photoOfTopper.Source = image; }
public TopperPage() { InitializeComponent(); var app = App.Current as App; topper = app.selectedTopper; // show topper's details in page nameTextBlock.Text = topper.Name; percentileTextBlock.Text =topper.Percentile; yearTextBlock.Text =topper.Year; //saysTextBlock.Text = topper.Say; //For displaying image /* BitmapImage image = new BitmapImage(); string photo = topper.Photo; image.UriSource = new Uri(photo); photoOfTopper.Source = image;*/ }
public TopperPage() { InitializeComponent(); var app = App.Current as App; topper = app.selectedTopper; // show topper's details in page nameTextBlock.Text = topper.Name; percentileTextBlock.Text = topper.Percentile; yearTextBlock.Text = topper.Year; //saysTextBlock.Text = topper.Say; //For displaying image /* BitmapImage image = new BitmapImage(); * string photo = topper.Photo; * image.UriSource = new Uri(photo); * photoOfTopper.Source = image;*/ }