jamesmontemagno / Xamarin.Forms-PullToRefreshLayout

Pull To Refresh a ScrollView or ListView in Xamarin.Forms
218 stars 49 forks source link

nothing happend #34

Closed jonahbohlmann closed 6 years ago

jonahbohlmann commented 6 years ago

Hi,

I have a tabbed page. In the Tabbed page I have an webview.

My source Code:

var HomePage = new Shop.TabControl.Home();
var scrollView = new ScrollView
{
    VerticalOptions = LayoutOptions.FillAndExpand,
    HorizontalOptions = LayoutOptions.FillAndExpand,
    Content = HomePage.Content
};

var refreshView = new PullToRefreshLayout
{
    VerticalOptions = LayoutOptions.FillAndExpand,
    HorizontalOptions = LayoutOptions.FillAndExpand,
    Content = scrollView,
    IsPullToRefreshEnabled = true,
    IsRefreshing = bindings.IsBusy,
    RefreshCommand = bindings.RefreshCommand,
    RefreshColor = Color.FromHex("#3498db")
};

HomePage.Content = refreshView;

HomeNavigation = new NavigationPage(HomePage)
{
    Icon = "home",
    Title = "Home",
    ClassId = "home",
    BarTextColor = Color.Black
};

this.Children.Add(HomeNavigation);

But there is no action, ne reload circle. Any idea about that?

jonahbohlmann commented 6 years ago

Forgot the Init(); in app delegate, sorry!