private void CreateTitleView()
 {
     Library.Code.V3.TitlesPivot titlePivot = new Library.Code.V3.TitlesPivot(this, "title", "No titles were found.", base.Filters, this.collectionItem.TitleObject.Id);
     titlePivot.ContentLabel = this.Description;
     titlePivot.SupportsJIL = true;
     titlePivot.ContentTemplate = "resx://Library/Library.Resources/V3_Controls_BrowseGallery#Gallery";
     titlePivot.ContentItemTemplate = "oneRowGalleryItemPoster";
     titlePivot.DetailTemplate = Library.Code.V3.BrowsePivot.ExtendedDetailTemplate;
     this.Model.Pivots.Options.Add(titlePivot);
     //setting this as the default chosen pivot
     this.Model.Pivots.Chosen = titlePivot;
 }
Exemple #2
0
 private void CreateTitleView()
 {
     Library.Code.V3.TitlesPivot titlePivot = new Library.Code.V3.TitlesPivot(this, "title", "No titles were found.", base.Filters, this.collectionItem.TitleObject.Id);
     titlePivot.ContentLabel        = this.Description;
     titlePivot.SupportsJIL         = true;
     titlePivot.ContentTemplate     = "resx://Library/Library.Resources/V3_Controls_BrowseGallery#Gallery";
     titlePivot.ContentItemTemplate = "oneRowGalleryItemPoster";
     titlePivot.DetailTemplate      = Library.Code.V3.BrowsePivot.ExtendedDetailTemplate;
     this.Model.Pivots.Options.Add(titlePivot);
     //setting this as the default chosen pivot
     this.Model.Pivots.Chosen = titlePivot;
 }
        private void CreateUnwatchedFilter()
        {
            List<TitleFilter> filters = new List<TitleFilter>(this.filters);
            filters.Add(new TitleFilter(TitleFilterType.Unwatched, false.ToString()));

            Library.Code.V3.TitlesPivot pivot = new TitlesPivot(this, "unwatched", "No titles were found.", filters, this.parentId);
            pivot.ContentLabel = this.Description;
            this.Model.Pivots.Options.Add(pivot);
        }