예제 #1
0
        public async Task Load()
        {
            var gList = await ExGalleryList.DownloadGalleryListAsync(0, $"http://exhentai.org/?f_search={ WebUtility.UrlEncode(Key)}&{SearchConfig.ToString()}");

            //(this.GalleryList as ImageWallRows<ExGallery>).RowWidth = BrowseWall.ActualWidth - BrowseWall.Padding.Left - BrowseWall.Padding.Right;
            //(this.GalleryList as ImageWallRows<ExGallery>).RowHeight = BrowseWall.ActualWidth > 500 ? 300 : 150;
            var s = new ImageWallRows <ExGallery>();

            s.ItemsSource    = new FilteredCollection <ExGallery, ExGalleryList>(gList, this.GalleryFilter);
            this.GalleryList = s;
        }