I'm working with the MVVM
pattern, so far so good, I have a PessoaViewlModel
class.
In it I have a property IEnumerable<Municipio> Municipios
, which shows me all the municipalities, according to UF(Unidade federativa Selecionada)
.
When I initialize WPF from person record, it loads the municipalities, but after initialization I pass the command so that in the list are only the municipalities that correspond to UF. In my property Municipios
of PessoaViewModel
is correct, however the items in the combobox does not follow the existing information in Municipios
to which combobox
is bound to binding.