internal void AddSelectedIndex(int index, bool single) { if (single) { SelectedIndexes.Clear(); } focused_index = Math.Max(index, 0); if (index != -1) { SelectedIndexes.Add(index); } owner.Invalidate(); }
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e) { base.OnCollectionChanged(e); owner.Invalidate(); }