在 Uno 2.4 和 WASM 上进行页面导航后,ProgressRing 停止动画
ProgressRing stops animating after a page navigation on Uno 2.4 & WASM
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.
});
它会导致问题吗?
Packages:
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
这实际上是 Uno.UI.Lottie
中的错误。我只是 created a PR 修复了这个错误。
更新:PR 已合并,修复将在 Uno.UI
v3.0.0-dev.144 中可用。
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.
});
它会导致问题吗?
Packages:
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
这实际上是 Uno.UI.Lottie
中的错误。我只是 created a PR 修复了这个错误。
更新:PR 已合并,修复将在 Uno.UI
v3.0.0-dev.144 中可用。