Setting DataContext of DataTemplate's root element causes next elements to loose context until recycled #11600
Labels
area/items-repeater
Categorizes an issue or PR as relevant the ItemsRepeater control
difficulty/challenging 🤯
Categorizes an issue for which the difficulty level is reachable with internals understanding
kind/bug
Something isn't working
project/items 🧾
Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
project/navigation-lifecycle 🧬
Categorizes an issue or PR as relevant to the navigation and lifecycle (NavigationView, AppBar, ...)
Current behavior
All next element after the first one is looses bind context. Scrolling elements will restore context (I think when recycled)
Expected behavior
No loosing context
How to reproduce it (as minimally and precisely as possible)
Repro
ContextInItemsRepeaterIssue.zip
Workaround
Not to use DataContext
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
WebAssembly, Android, iOS, macOS (AppKit), Mac Catalyst, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer), Skia (Tizen)
IDE
Visual Studio 2022
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: