相关疑难解决方法(0)

每隔几秒自动刷新或更新内容页面

我正在使用Xamarin.forms(PCL),我需要每隔几秒刷新/更新内容页面及其数据.该数据是从检索APIviewmodel.

有没有可以定期使用的调用任何方法或处理Get Api周期里面page.xaml.cs,是这样的:

methodRunPeriodically()
{
 userdata = await UserService.GetUserasync(_UserViewModel.EmployeeId);
}
Run Code Online (Sandbox Code Playgroud)

c# xamarin xamarin.forms

2
推荐指数
2
解决办法
1万
查看次数

标签 统计

c# ×1

xamarin ×1

xamarin.forms ×1