void queue_ItemLoaded(object sender, LoadedEventArgs e)
 {
     if (queue.Count == 0 && queue.DownloadingCount == 0)
     {
         //CreateTextElements();
         andrewmyhredotcom.Visibility = System.Windows.Visibility.Visible;
         amFadeIn.Begin();
         foreach (Ident ident in gridLinks.Children)
         {
             ident.Visibility = System.Windows.Visibility.Visible;
             ident.Begin();
         }
         tv.Start();
     }
 }
 private void PreLoadingItemCompleted(object sender, PreLoadingItemCompleteEventArgs eventArgs)
 {
     IPreLoadable item = eventArgs.Item;
     string str = this._downloading[item];
     this._completed.Add(item, str);
     this._downloading.Remove(item);
     if (this.ItemLoaded != null)
     {
         LoadedEventArgs e = new LoadedEventArgs {
             Loaded = item,
             Key = str
         };
         this.ItemLoaded(this, e);
     }
     if (this.AutoAdvance)
     {
         this.LoadNext();
     }
 }
Esempio n. 3
0
        private void QueueItemLoaded(object sender, LoadedEventArgs e)
        {
            if (e.Loaded.Category != "flicker video") return;
            MediaElement flickerMediaElement = new MediaElement();

            this.flickerContainer.Children.Add(flickerMediaElement);
            int index = int.Parse(e.Key);
            _flickers[index] = flickerMediaElement;
            flickerMediaElement.SetSource(e.Loaded.Stream);
            InitialiseFlickerVideo(flickerMediaElement);
            flickerMediaElement.MediaEnded += FlickerMediaEnded;
            _loadedItems++;
        }
Esempio n. 4
0
        void queue_ItemLoaded(object sender, LoadedEventArgs e)
        {
            if (e.Key == "flickerVideos") FlickerVideos = ProcessVideoItemsFromXml(e.Loaded.Stream);
            else if (e.Key == "mainVideos") ContentVideos = ProcessVideoItemsFromXml(e.Loaded.Stream);

            if (queue.Count > 0)
                queue.LoadNext();
            else
                this.RootVisual = new MainPage();
        }