public GenrePivot(IModelItemOwner owner, string stDescription, string stNoContentText, List<OMLEngine.TitleFilter> filters, OMLEngine.TitleFilterType filterType)
            : base(owner, stDescription, stNoContentText, null)
        {
            this.SetupContextMenu();
            //this.ContentLabel = "OML";
            this.SupportsJIL = true;
            this.ContentTemplate = "resx://Library/Library.Resources/V3_Controls_BrowseGallery#Gallery";
            this.ContentItemTemplate = "twoRowGalleryItemGenre";
            this.DetailTemplate = Library.Code.V3.BrowsePivot.ExtendedDetailTemplate;

            this.SupportedContentItemTemplates.Add("View Large", "twoRowGalleryItemGenre");
            //this.SupportedContentItemTemplates.Add("View Small", "twoRowGalleryItemPoster");
            this.SupportedContentItemTemplates.Add("View List", "ListViewItem");

            this.m_filters = filters;
            this.m_filterType = filterType;
            this.m_listContent = new VirtualList(new ItemCountHandler(this.InitializeListCount));
            ((VirtualList)this.m_listContent).RequestItemHandler = new RequestItemHandler(this.GetItem);
        }
Exemple #2
0
        public GenrePivot(IModelItemOwner owner, string stDescription, string stNoContentText, List <OMLEngine.TitleFilter> filters, OMLEngine.TitleFilterType filterType)
            : base(owner, stDescription, stNoContentText, null)
        {
            this.SetupContextMenu();
            //this.ContentLabel = "OML";
            this.SupportsJIL         = true;
            this.ContentTemplate     = "resx://Library/Library.Resources/V3_Controls_BrowseGallery#Gallery";
            this.ContentItemTemplate = "twoRowGalleryItemGenre";
            this.DetailTemplate      = Library.Code.V3.BrowsePivot.ExtendedDetailTemplate;

            this.SupportedContentItemTemplates.Add("View Large", "twoRowGalleryItemGenre");
            //this.SupportedContentItemTemplates.Add("View Small", "twoRowGalleryItemPoster");
            this.SupportedContentItemTemplates.Add("View List", "ListViewItem");



            this.m_filters     = filters;
            this.m_filterType  = filterType;
            this.m_listContent = new VirtualList(new ItemCountHandler(this.InitializeListCount));
            ((VirtualList)this.m_listContent).RequestItemHandler = new RequestItemHandler(this.GetItem);
        }