x:Load/ElementStub doesn't work with Border
, among others
#19173
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
ElementStub works by adding the lazy-loaded element to the parent's
UIElement._children
collection. This doesn't work with Border, which needs itsChild
property set for layout purposes (and many other things). I have a repro with a Border, but conceptually, the same problem will appear with a large number of classes.Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
Clicking the red square should toggle the visibility of the textblock.
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: