View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001796||NoesisGUI||C# SDK||public||2020-09-23 21:16||2020-09-24 16:36|
|Target Version||3.0.6||Fixed in Version||3.0.6|
|Summary||0001796: Collection.Move doesn't keep the bound selected item|
As 0001550 is implemented now, I've tried Collection.Move with ListBox and ObservableCollection and noticed that it works now (no more "unsupported" message from NoesisGUI) but the bound selected item is getting changed.
I have a feeling that the selected item is linked to the SelectedIndex property somehow even though I'm using SelectedItem binding only.
E.g. I'm selecting an entry in position #3 in the ListBox. Then I'm moving some entries with Collection.Move and the selection index is still kept at #3 even though there is a different entry now.
|Tags||No tags attached.|
|Unfortunately, a workaround is a problem as the SelectedItem change happens during the next Noesis.Update so it's not immediate and I cannot simply save the selected item manually, invoke Collection.Move, and then restore the selected item. Probably I could do this with a "invoke this after 1 frame" but it's a very unreliable approach.|
|2020-09-23 21:16||ai_enabled||New Issue|
|2020-09-23 21:18||ai_enabled||Note Added: 0006647|
|2020-09-23 21:39||sfernandez||Assigned To||=> sfernandez|
|2020-09-23 21:39||sfernandez||Status||new => assigned|
|2020-09-23 21:39||sfernandez||Target Version||=> 3.0.6|
|2020-09-24 16:36||sfernandez||Status||assigned => resolved|
|2020-09-24 16:36||sfernandez||Resolution||open => fixed|
|2020-09-24 16:36||sfernandez||Fixed in Version||=> 3.0.6|