Reorder itemscontrol without resetting the item
Hi.
I have an ItemsControl. It takes in an ObservableCollection, and it generates a long list with input boxes and other forms based on that observablecollection.
I have been trying to reorder items in the list (the application is supposed to be a sort of scriptlike thing), but every time I change the order it resets the textboxes for instance to old values.
Is there a way to do this? Feel like I am going slightly insane, so would be so very thankful for help.
1 Reply
are the textbox values not being bound to the VM layer?
or are you using an update policy on the binding where they don't get pushed right away?
like, the proper setup in my mind makes this problem impossible
if the text values are properly bound, it sounds like you're doing something wrong in the VM layer that throws them away, and it has nothing to do with
ItemsControl or ObservableCollection at all