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(); }
public void VirtualScrollingSetView(MatVirtualScrollView scrollView) { this.SetScrollView(scrollView); }
public void VirtualScrollingSetView(MatVirtualScrollView view) { _host.VirtualScrollingSetView(view); }