Ejemplo n.º 1
0
        private void SetScrollView(MatVirtualScrollView scrollView)
        {
            this.ScrollView                 = scrollView;
            this.ScrollViewResult           = new MatVirtualScrollViewResult();
            this.ScrollViewResult.Height    = Items.Count() * ItemHeight;
            this.ScrollViewResult.SkipItems = scrollView.ScrollTop / this.ItemHeight;
            this.ScrollViewResult.TakeItems =
                (int)Math.Ceiling((double)(scrollView.ScrollTop + scrollView.ClientHeight) / (double)ItemHeight) -
                this.ScrollViewResult.SkipItems;
//            Console.WriteLine(ScrollViewResult.SkipItems + " " + ScrollViewResult.TakeItems);
            this.StateHasChanged();
        }
 public void VirtualScrollingSetView(MatVirtualScrollView view)
 {
     this._view = view;
     _target.StateHasChangedFromVirtualScrollHelper();
 }
Ejemplo n.º 3
0
 public void VirtualScrollingSetView(MatVirtualScrollView scrollView)
 {
     this.SetScrollView(scrollView);
 }
 public void VirtualScrollingSetView(MatVirtualScrollView view)
 {
     _host.VirtualScrollingSetView(view);
 }