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.03k stars 733 forks source link

Some local properties are initialized after after the implicit content initializer #18871

Open jeromelaban opened 1 day ago

jeromelaban commented 1 day ago

Current behavior

Given https://github.com/unoplatform/uno/pull/18870, remove the content template and place the TextBlock at the root of the page, notice that the binding is evaluated too early.

Expected behavior

The textblock shows properly

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

No response

Workaround

Delay the evaluation, for example by using a templated control.

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

5.5.43

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response