Recently, I have been trying to implement the MVVM design pattern, but I encountered 2 problems which I can't solve:
As I see it, I must use ObservableCollection in my Model classes, in order to pass it in the ModelView to the View. I hope that I wrong, because the View must not affect the Model structure, and I shouldn't be limited to this specific collection type.
Is there any way to do two-way binding with a value-type item list?
Example:
public ObservableCollection<bool> MyBooleans
{
get { return m_booleans; }
}
<ListView ItemsSource="{Binding MyBooleans}" ...>
<ItemTemplate>
...
<CheckBox IsChecked="{Binding}" ... />
...
</ItemTemplate>
</ListView>
INotifyCollectionChanged,INotifyPropertyChanged. 2. Not without a wrapper. - user7116