C
C#6mo ago
Baymax

[WPF] How to edit multiple items in ListBox at once

I'm trying to edit multiple items using SelectionMode="Extended" to give the items a specific value, I'm using SelectedItems property to get the items, just don't know how to save it back to the ListBox after edit.
7 Replies
sibber
sibber6mo ago
iterate over them and set the property?
Baymax
Baymax6mo ago
What property ?
br4kejet
br4kejet6mo ago
The property or data that you want to edit
Baymax
Baymax6mo ago
I want to edit the selected ListBox items themselves, SelectedItems is a read-only property (unlike SelectedItem), so iterating through it won't work as with SelectedItem property.
sibber
sibber6mo ago
you mean you want to replace them? looks like youd need to find each item and replace it manually
Mayor McCheese
Mayor McCheese6mo ago
mvvm ftw
nohopestage
nohopestage6mo ago
You can iterate through it and edit the items I believe, so not sure you mean
Want results from more Discord servers?
Add your server
More Posts