/// <summary> /// Inserts an item to the selector's collection at the specified index and selects it. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item" /> should be inserted. index.</param> /// <param name="item">The object to insert.</param> public virtual void InsertAndSelect(int index, T item) { ItemsCore.Insert(index, item); SelectedIndex = index; }
/// <summary> /// Inserts an item to the <see cref="T:System.Collections.Generic.IList`1" /> at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item" /> should be inserted.</param> /// <param name="item">The object to insert into the <see cref="T:System.Collections.Generic.IList`1" />.</param> public virtual void Insert(int index, T item) { ItemsCore.Insert(index, item); }