Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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);
 }