WinUI ProgressRing 在页面导航后卡住并且不会再次转回背景。它看起来是一个冻结的进度环 :) ProgressRing 在 UWP 上似乎没问题,真正的问题似乎在 WASM 上。我安装了 Lottie 包,但这不是真正的解决方案。没有页面导航,WASM 上的 ProgressRing 可以完美运行。
我使用它来延迟操作并显示 progressRing 以指示应用程序正在后台运行:
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => // Working in different thread.
{
WaiterGrid.Visibility = Visibility.Visible; // Show waiter.
});
try
{
await Task.Delay(1000);
// Operations here.
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
MessageDialog warn_box = new MessageDialog("X. Lütfen yeniden deneyin.", "Hata");
await warn_box.ShowAsync();
}
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => // Working in different thread.
{
WaiterGrid.Visibility = Visibility.Collapsed; // Show waiter.
});
它会导致问题吗?
套餐:
Uno.UI.RemoteControl {2.4.0}
Newtonsoft.Json {12.0.3}
Uno.UI.Lottie {2.4.0}
Uno.Wasm.Bootstrap {1.2.0}
Uno.Wasm.Bootstrap.DevServer {1.2.0}
ACM_Search_AdminApps.Shared {1.1.0}
Microsoft.Extensions.Logging.Filter {1.1.2}
Microsoft.Extensions.Logging.Con... {1.1.1}
NETStandard.Library {2.0.3}
Uno.UI {2.4.0 }
ACM_Search_AdminApps.Shared {1.1.0}
Microsoft.NETCore.UniversalWindo... {6.2.10}
Microsoft.Extensions.Logging.Con... {1.1.1}
Microsoft.Extensions.Logging.Filter {1.1.2}
Microsoft.Toolkit.Uwp.UI.Lottie {6.0.0}
Microsoft.UI.Xaml {2.4.2}
Newtonsoft.Json {12.0.3}
Uno.Core {2.0.0}
UWP
WASM