Exemplo n.º 1
0
        private async Task moveToNextPicture()
        {
            if (currentRecord == null)
                currentRecord = imageRecords.Last();

            currentRecord = imageRecords[(imageRecords.IndexOf(currentRecord) + 1) % imageRecords.Count];
            string imagePath = await getImagePath(new Uri(System.IO.Path.Combine(baseUrl, currentRecord.ImagePath)), System.IO.Path.GetFileName(currentRecord.ImagePath));
            ImageContainer.Transition = useTransitions ? getRandomTransition() : null;
            ImageContainer.Content = new Image() { Source = new BitmapImage(new Uri(imagePath)) };
        }
Exemplo n.º 2
0
        private async Task moveToNextPicture()
        {
            if (currentRecord == null)
            {
                currentRecord = imageRecords.Last();
            }

            currentRecord = imageRecords[(imageRecords.IndexOf(currentRecord) + 1) % imageRecords.Count];
            string imagePath = await getImagePath(new Uri(System.IO.Path.Combine(baseUrl, currentRecord.ImagePath)), System.IO.Path.GetFileName(currentRecord.ImagePath));

            ImageContainer.Transition = useTransitions ? getRandomTransition() : null;
            ImageContainer.Content    = new Image()
            {
                Source = new BitmapImage(new Uri(imagePath))
            };
        }