The sample code below can be added directly a "File new project" MAUI app (with a name of "MauiPlayground" to use the same namespaces), or it's all available from my demo code repo. The sample code is all below, but the fundamental question is whether this a bug somewhere in my code (do I need to "tell" the controls to update themselves for some reason?) or possibly a bug in MAUI (in which case I should presumably report it)? Label and Checkbox) are visually updated, indicating that the view model notification is working fine and the UI itself is generally healthy.īuild environment: Visual Studio 2022 17.2.0 preview 2.1Īpp environment: Android, either emulator "Pixel 5 - API 30" or a real Pixel 6 The problem I'm facing is that changes to the view model are not visually propagated to the Switch.IsToggled and ListView.SelectedItem properties, even though the controls do raise events showing that they've "noticed" the property changes. I'm using 2-way data binding in my MAUI app: changes to the data can either come directly from the user, or from a background polling task that checks whether the canonical data has been changed elsewhere. ( CollectionView has similar issues, but other confounding factors that make it trickier to demonstrate.) It's entirely possible that they're different problems that just share some common symptoms though. Actually, keeping the correct aspect ratio would also be nice when resizing the window in window mode too.This question is about two MAUI controls ( Switch and ListView) - I'm asking about them both in the same question as I'm expecting the root cause of the problem to be the same for both controls. So for macOS, I think it'll be better to use SDL_WINDOW_FULLSCREEN_DESKTOP, however it would be nice if it correctly scaled to both fill the screen AND keep the correct aspect ratio. Pressing "option-return" again will restore to window mode and rendering keeps working, and it always puts the window back to the same size/position that it was before going into fullscreen mode. It scales to fit the ENTIRE screen, even if it means the aspect ratio is incorrect (i.e. It correctly goes into a proper macOS fullscreen mode which allows switching to other apps/screens. (d) branch sdl bd147276 with SDL_WINDOW_FULLSCREEN_DESKTOP Pressing "option-return" again will restore to window mode and rendering keeps working, although it sometimes puts the window in the bottom left of the desktop. However it does keep real-time rendering to the screen. Goes into a fullscreen mode which takes over the Mac and doesn't allow switching to other apps. it returns to scale x1, so you only see the display in the top-left of the screen. However it doesn't scale to fit the screen, i.e. (b) branch master 062bedc7 with SDL_WINDOW_FULLSCREEN_DESKTOP Pressing "option-return" again will restore to window mode however real-time rendering is still broken. It stops rendering to the screen, although it keeps responding to keyboard and playing sound (e.g. Yes, "Alt-Enter" (or "option-return" on the Mac) does work.
0 Comments
Leave a Reply. |