How do I implement pull-to-refresh in a ListView?

To enable pull-to-refresh, set the ‘IsPullToRefreshEnabled’ property to ‘true’ and specify a ‘RefreshCommand’. Users can then pull down the list to initiate the refresh action.   XAML C#-MVVM