【发布时间】:2017-06-25 12:53:55
【问题描述】:
Im using xamarin forms 2.3.4.247 shared project. In my login page im navigating my page to another. while this page is rendering im 在主页中显示活动指示器。但不幸的是,活动指示器卡住了,几秒钟后第二个页面加载。ive tried these codes below and i got nothing.All of these codes are running into an async command.im 在 android 平台上的实际设备中测试我的应用程序。
1
activityIndicator.IsRunnig=true;
new System.Threading.Thread(new System.Threading.ThreadStart(() =>
{
Navigation.PushAsync(new DeviceLoginView());
})).Start();
2
activityIndicator.IsRunnig=true;
Device.BeginInvokeOnMainThread(async () =>
{
await Navigation.PushAsync(new DeviceLoginView());
});
3
activityIndicator.IsRunnig=true;
await Navigation.PushAsync(new DeviceLoginView());
【问题讨论】:
标签: xamarin navigation xamarin.android xamarin.forms activity-indicator