-
My application is running on a fairly low power Raspberry Pi and the transitions between pages causes the screen to go white (background color) when navigating. I don't believe it's due to slow loading of view models or overly complex UI, but rather the switch of DataContext (which is done by the Uno Navigation kit), where it is first set to null and then to the new ViewModel (the Page/View is reused). My wish is for the screen to not attempt rendering until the new ViewModel is made available, I've toyed with the idea of taking a screenshot and displaying that, but it seems like a clunky hack. If there would be a way to freeze rendering when DataContext is null that would've solved it, or perhaps a way to not have it set to null first, just switch it to the new VM. Then I click on the hamburger menu (and set a BP in the DataContextChanged so I can see what's going on and take a screen shot) and this is what is displayed when DataContext = null: The VM doesn't take very long to generate (around 160 ms), but I believe the root cause is the assignment to null which forces a re-render of the screen. Here's the repo for the app: https://github.com/HakanL/UnoTestApp |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There are two notable problems here:
|
Beta Was this translation helpful? Give feedback.
for #2, I don't know much about uno.ext.nav. But you can use this hack at the view level to blocks the null ones:
The idea to let the null flow t…