uno.toolkit.ui
uno.toolkit.ui copied to clipboard
[LoadingView] Use of Dispatcher on WinUI
Current behavior
https://github.com/unoplatform/uno.toolkit.ui/blob/main/src/Uno.Toolkit.UI/Controls/LoadingView/CompositeLoadableSource.cs#L124
We use the Dispatcher
property on WinUI which is not on Windows WinUI project.
Expected behavior
We have to use the DispatcherQueue
which is available on all platfroms.
How to reproduce it (as minimally and precisely as possible)
Use the LoadingView
on Windows with a WinUI project
Environment
Affected platform(s):
- [ ] iOS
- [ ] Android
- [ ] WebAssembly
- [ ] WebAssembly renders for Xamarin.Forms
- [x] Windows
- [ ] Build tasks
Visual Studio:
- [ ] 2017 (version: )
- [ ] 2019 (version: )
- [ ] for Mac (version: )
Relevant plugins:
- [ ] Resharper (version: )
Anything else we need to know?
@Xiaoy312 @nickrandolph Not sure who is working on it right now :)
I can take a look once I get toolkit building again - bad merge
i have this fixed in my branch, not sure when it will be up/merged: https://github.com/unoplatform/uno.toolkit.ui/commit/32fadceabd433530b424cf9e386e1f2bd91650eb likely wont be in the same pr. it is kinda out of scope with runtime tests? btw CI is in a bad state today, so i cant just make a quick pr for that now :/
@nickrandolph you can just grab the code too
Thanks. Will need to modify it slightly as we can't call getforcurrentthread from background thread as it returns null