I canceled the option to add / delete, like this:
I created a generic class:
public class PosList<T> : List<T>, ICollection<T>, IList
{
public ValuesList(IEnumerable<T> items) : base(items) { }
bool ICollection<T>.IsReadOnly { get { return true; } }
bool IList.IsReadOnly { get { return true; } }
}
That gives the possibility to Add/Remove in code, but not through the collection editor.
use:
private PosList<Pos> _position = new PosList<Pos>(new List<Pos>());
public PosList<Pos> Position
{
get { return _position; }
set
{
_position = value;
NotifyPropertyChanged("Position");
}
}