-
Notifications
You must be signed in to change notification settings - Fork 854
OneWay x:Bind on ListView.ItemsSource resets the source property if a setter is available #13433
Copy link
Copy link
Labels
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlCategorizes an issue or PR as relevant to the ListView controlarea/xBind 🪢Categorizes an issue or PR as relevant to x:BindCategorizes an issue or PR as relevant to x:Bindhas-repro-branchproject/binding 🪢Categorizes an issue or PR as relevant to the binding engineCategorizes an issue or PR as relevant to the binding enginetriage/potentially-fixedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verifiedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Metadata
Metadata
Assignees
Labels
area/listview 📃Categorizes an issue or PR as relevant to the ListView controlCategorizes an issue or PR as relevant to the ListView controlarea/xBind 🪢Categorizes an issue or PR as relevant to x:BindCategorizes an issue or PR as relevant to x:Bindhas-repro-branchproject/binding 🪢Categorizes an issue or PR as relevant to the binding engineCategorizes an issue or PR as relevant to the binding enginetriage/potentially-fixedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verifiedCategorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Type
Fields
Give feedbackNo fields configured for Bug.
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=OneWayfrom theItemsSourcebinding, which is not needed (ItemsSourceis never updated byListViewitself).Other
Originally posted by @DJDQfff in #13428