protected override void OnAppearing() { base.OnAppearing(); var pager = new PagingView { PageCount = 10, }; pager.BindingContext = this; pager.SetBinding(PagingView.PageProperty, PageProperty.PropertyName); var btn = new Button { Text = "Count", Command = new Command((obj) => { Page++; }), }; Content = new StackLayout { Orientation = StackOrientation.Vertical, VerticalOptions = LayoutOptions.CenterAndExpand, Children = { pager, btn, new PagingView { PageCount = 5, Page = 3, IndicatorColor = Color.Blue, } } }; }
protected override void OnAppearing () { base.OnAppearing (); var pager = new PagingView { PageCount = 10, }; pager.BindingContext = this; pager.SetBinding (PagingView.PageProperty, PageProperty.PropertyName); var btn = new Button{ Text = "Count", Command = new Command((obj) => { Page++; }), }; Content = new StackLayout { Orientation = StackOrientation.Vertical, VerticalOptions = LayoutOptions.CenterAndExpand, Children = { pager, btn, new PagingView { PageCount = 5, Page = 3, IndicatorColor = Color.Blue, } } }; }
public async Task <IActionResult> GetGroupsByFilters(PagingView pagingView, int userId, [FromQuery] string SearchText = null) { var result = await _service.GetGroupsByFilters(pagingView, userId, SearchText); return(Ok(result)); }
public ListingView(T data, PagingView pagingView) { this.Data = data; this.PagingView = pagingView; }