Esempio n. 1
0
 // called on download complete of each package/file
 public void downloadCompleteCallback(Uri packageSource, DownloadCompleteEventArgs e)
 {
     m_packageDownloadCount--;
     // if download is complete set source to a package of our choice
     if (m_packageDownloadCount <= 0)
     {
         // ! note that for the demo's sake we are just setting the active xap to be the first xap on the list.
         //   you should probably modify this if you have more then one xap on the list !
         foreach (Uri source in m_packageSourceList.Keys)
         {
             if (source.ToString().EndsWith(".xap"))
             {
                 // this will unload the the loader from the page and cause the package source to become the active xap file on page
                 // ! this should be the last loader operation after that it will start the unload process !
                 XapUtil.setCurrentXapFile(source);
                 break;
             }
         }
     }
 }
 void ISilverlightLoader.downloadCompleteCallback(Uri packageSource, DownloadCompleteEventArgs eventArgs)
 {
     XapUtil.setCurrentXapFile(packageSource);
 }