❔ ObservableCollection
Hi, I need to update a combobox that is connected in viewmodel layer by an observablecollection everytime that a made a changeon my software and API collect new values. Can't do that, why am i doing wrong?
10 Replies
Revit stuff?
I don't think the ObservableCollection should be private
Yeah!!
Do you program in Revit API ?
it's a shame all of the tutorials you'll find are WinForms and all that.
most of my side work is related to it, sure.
Ok, but my binding is point to WallEntries that is a public ObservableCollection
you should use what I shown there
You should never re-set the
observableCollection
, just clear, add/remove to the collectionUnderstand... need to learn how to do that, new on WPF and MVVM things...
And yeah, mos of it are WinForms, and they even never show how to use things like EventHandlers to do modal forms
Try WPF if you can.
I'm doing that, trying WPF + MVVM architecthure to develop some plugi
It works. But now i wanna to for example, duplicate some wall elements on revit and dinamically update de combobox values. Any clues on how to do this?
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.