Пример #1
0
 public PhotoLibraryPage(bool showDevice)
     : base(showDevice, MediaType.Photo)
 {
     this.UI     = LibraryTemplate;
     this.UIPath = "Collection\\Photos";
     if (showDevice)
     {
         this.PivotPreference = Shell.MainFrame.Device.Photos;
         Deviceland.InitDevicePage(this);
     }
     else
     {
         this.PivotPreference = Shell.MainFrame.Collection.Photos;
     }
     this.IsRootPage                   = true;
     this._photosPanel                 = new PhotosPanel(this);
     this._photoFolderPanel            = new PhotoFolderPanel(this);
     this.ShowPlaylistIcon             = false;
     this.TransportControlStyle        = TransportControlStyle.Photo;
     this._slideShowState              = new SlideShowState(this);
     this._expandedFolderIds           = new Dictionary <int, bool>();
     this._refreshFolderIds            = new Dictionary <int, bool>();
     this._refreshPictures             = new Command();
     this._pendingFolderToExpandToRoot = -1;
     this._pendingFolderDeleteId       = -1;
     this._pendingFolderId             = -1;
 }
Пример #2
0
        public static void PlaySlideShow(int folderId, string sort, int startIndex)
        {
            SlideShowState slideShowState = new SlideShowState(null);
            SlideshowLand  slideshowLand  = new SlideshowLand();

            slideshowLand.SlideShowState = slideShowState;
            slideShowState.Sort          = sort;
            slideShowState.Index         = startIndex >= 0 ? startIndex : 0;
            slideShowState.FolderId      = folderId;
            ZuneShell.DefaultInstance.NavigateToPage(slideshowLand);
        }