Xamarin.Forms                
            Utilizzando ListViews
        
        
            
    Ricerca…
introduzione
Questa documentazione spiega come utilizzare i diversi componenti di Xamarin Forms ListView
Pull to Refresh in XAML e Code behind
 Per abilitare Pull to Refresh in un ListView in Xamarin, è necessario prima specificare che sia attivato PullToRefresh e quindi specificare il nome del comando che si desidera richiamare sul ListView viene estratto: 
<ListView x:Name="itemListView" IsPullToRefreshEnabled="True" RefreshCommand="Refresh">
Lo stesso può essere ottenuto nel codice sottostante:
itemListView.IsPullToRefreshEnabled = true;
itemListView.RefreshCommand = Refresh;
 Quindi, devi specificare cosa fa il comando di Refresh nel tuo codice: 
public ICommand Refresh 
{
    get
    {
        itemListView.IsRefreshing = true; //This turns on the activity
                                          //Indicator for the ListView
        //Then add your code to execute when the ListView is pulled
        itemListView.IsRefreshing = false;
    }
}
Modified text is an extract of the original Stack Overflow Documentation
        Autorizzato sotto CC BY-SA 3.0
        Non affiliato con Stack Overflow