public MainPage() { InitializeComponent(); currentHeading = Heading1; currentBody = Body1; currentBitmap = BitmapExtensions.LoadBitmapResource(this.GetType(), Location.LocationPages[currentIndex].ImageResource); offscreenHeading = Heading2; offscreenBody = Body2; // set intial values offscreenHeading.Text = Location.LocationPages[0].Title; offscreenBody.Text = Location.LocationPages[0].Description; }
private void UpdateOffScreenElements(int index) { offscreenHeading.Text = Location.LocationPages[index].Title; offscreenBody.Text = Location.LocationPages[index].Description; offscreenBitmap = BitmapExtensions.LoadBitmapResource(this.GetType(), Location.LocationPages[index].ImageResource); }