OneWay
x:Bind
on ListView.ItemsSource
resets the source property if a setter is available
#13433
Labels
area/listview 📃
Categorizes an issue or PR as relevant to the ListView control
area/xBind 🪢
Categorizes an issue or PR as relevant to x:Bind
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
project/binding 🪢
Categorizes an issue or PR as relevant to the binding engine
The Control:
Data :
In Constructor :
Display Result:
no Item is displayed, but the Items actually have data . I also tried to use ListView.Items property in xaml ,it can correctly work.
Android (7.0) and WASM(firefox-latest) meet this error , WinUI is correct
Repro:
13433-ErrorProject-master.zip
Workaround
The workaround for this particular sample is to remove the
,Mode=OneWay
from theItemsSource
binding, which is not needed (ItemsSource
is never updated byListView
itself).Other
Originally posted by @DJDQfff in #13428
The text was updated successfully, but these errors were encountered: