コード例 #1
0
        public MainPage()
        {
            InitializeComponent();
            currentBody              = Body1;
            currentHeading           = Heading1;
            offscreenBody            = Body2;
            offscreenHeading         = Heading2;
            offscreenBody.Opacity    = 0;
            offscreenHeading.Opacity = 0;
            currentBitmap            = BitmapExtensions.LoadBitmapResource(this.GetType(), Location.LocationPages[currentIndex].ImageResource);

            //// set initial values
            //var next = GetNextIndex();
            //offscreenHeading.Text = Location.LocationPages[next].Title;
            //offscreenBody.Text = Location.LocationPages[next].Description;
            //offscreenBitmap = BitmapExtensions.LoadBitmapResource(this.GetType(), Location.LocationPages[next].ImageResource);
        }
コード例 #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);
 }