Open Basyras opened 4 years ago
Thanks for the report!
It is indeed related to #3519. The Loaded event is not raised at the proper time, causing this issue.
Will be fixed with https://github.com/unoplatform/uno/pull/14528 for Skia and Wasm (other platforms need to be tested)
Current behavior
Calling
ContentDialog.ShowAsync()
inMainPage.Loaded
event does not showing dialog after app started (Only in Wasm project).Expected behavior
ContentDialog should be displayed.
How to reproduce it (as minimally and precisely as possible)
Create project with blank Uno app template and add code in MainPage.xaml.cs:
Workaround
simple
await Task.Delay(1000);
before callingawait dialog.ShowAsync();
solve this issueEnvironment
Nuget Package:
Nuget Package Version(s): NETStandard.Library: 2.0.3 Uno.UI.RemoteControl: 3.2.0 Uno.UI.WebAssembly: 3.2.0 Uno.Wasm.Bootstrap: 1.3.4 Uno.Wasm.Bootstrap.DevServer: 1.3.4
Affected platform(s):
Skia and WASM covered by #15207
IDE:
Relevant plugins:
Anything else we need to know?
This issue may be releated to #3519 (if yes we can close my issue)