Twoway x:bind Doesn't Work Correctly On Different Platforms #18509
Labels
area/xBind 🪢
Categorizes an issue or PR as relevant to x:Bind
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
Current behavior
I've created a item template for a navigationview item with a model. I've set it to capture the selection state by adding a another navview item with two-way bindings like this
and it is used to hide the labels in navigationview item like this
As I've tested, this seems to work fine on Windows and Android platform. But It is messing around with MacOS, Skia (MacOS) and WASM. (Didn't build with IOS)
Sometimes the label only gets hidden and shown once, which means the properties doesn't get properly binded after that (as I understand)
Expected behavior
The MacOS platforms should be same as the Windows and Android
How to reproduce it (as minimally and precisely as possible)
UnoApp1.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Affected platforms
Mac Catalyst, Skia (macOS)
IDE
Visual Studio 2022, Visual Studio Code
IDE version
VS Version 17.12.0 Preview 1.0, VS Code Version: 1.95.0-insider
Relevant plugins
No response
Anything else we need to know?
Another thing I found,
Even though this uses the same code It looks streched on some platforms (which is okay, I can manually make them)
WASM and WinUI (Bindings works fine only on WinUI)
Android With Debug Logs (Bindings works fine here)
MacOS With Debug Logs
Although this is my understanding, I'm not sure whether this is a problem with two-way binding or with controls or with mine, so correct me if I'm wrong
The text was updated successfully, but these errors were encountered: