Esempio n. 1
0
        async void LoadImageAsync(string url)
        {
            ImageItem imageItem = new ImageItem();
            await imageItem.LoadImageAsync(url);

            await Dispatcher.BeginInvoke(new Action <ImageItem>(AddImageToUI), imageItem);
        }
Esempio n. 2
0
        async void LoadImagesAsyncNewInOrder()
        {
            List <string> urls = m_smugMugFeed.Fetch();

            int i = 0;

            foreach (string url in urls)
            {
                ImageItem imageItem = new ImageItem();
                await imageItem.LoadImageAsync(url);

                AddImageToUI(imageItem);

                i++;
                if (i == 100)
                {
                    break;
                }
            }
        }