Android 및 iOS 프로젝트가있는 Xamarin forms PCL 프로젝트를 사용하고 있습니다.새로 고침이 완료된 후 새로 고침 컨트롤이 숨겨져 있지 않습니다.
iOS (iPhone 6 Plus)에서 새로 고침을 사용하면 새로 고침 제어가 숨겨지지 않습니다. 새로 고침 컨트롤 숨기기는 일부 iPhone 6 Plus 및 7 Plus를 제외한 모든 iPhone에서 작동합니다.
여기 내 코드입니다. 디자인 :
<ListView x:Name="listviewCompanies"
SeparatorVisibility="None"
RowHeight="210"
HasUnevenRows="false"
ItemTapped="OnItemTapped"
ItemSelected="OnItemSelected"
IsPullToRefreshEnabled="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<views:CompaniesListTemplate />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
새로 고침 명령 :
listviewCompanies.RefreshCommand = new Command(() =>
{
BindCompanyList();
listviewCompanies.IsRefreshing = false;
});
어떻게 모든 아이폰에서 재생 컨트롤을 숨길 수 있습니까?
cs 디자인 대신 xaml 코드에서도 사용할 수 있습니다. – sumeet
RelayAsyncCommand – sumeet
사용해 주셔서 감사합니다. 나는 _listListView.IsRefreshing = true;를 사용한다. _listListView.IsRefreshing = false; 그때 그것은 나를 위해 일한다 –