unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.04k stars 734 forks source link

x:Load issue resolving Dependency Properties on non UWP platforms #5489

Open s-beltz opened 3 years ago

s-beltz commented 3 years ago

Current behavior

Expected behavior

If an element is loaded into the visual tree via setting x:Load using VisualStateManager, DependencyProperties bound using x:Bind will not be resolved.

UWP: xBind-UWP

WASM: xBind-WASM

Android: xBind-Android

How to reproduce it (as minimally and precisely as possible)

UnoNavViewSample-x_bind-2021-03-17.zip

Workaround

Environment

Nuget Package:

Nuget Package Version(s): Uno.UI Version="3.6.0-dev.459"

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

hawkerm commented 2 years ago

Wonder if this is related to the binding issue I'm seeing. I feel like timing of bindings are trying to load out-of-order and that bindings within the x:Load section are trying to be evaluated before whatever they depend on is ready. Need to see if I can reproduce in a simple environment.