private void HandleCurrentIndexChanged(object sender, CurrentIndexChangedEventArgs e) { if (e.PreviousIndex.HasValue) { DrawMenuItem(e.PreviousIndex.Value); } if (e.CurrentIndex.HasValue) { DrawMenuItem(e.CurrentIndex.Value); } }
/// <summary> /// Raises the <see cref="CurrentIndexChanged"/> event. /// </summary> protected virtual void OnCurrentIndexChanged(CurrentIndexChangedEventArgs e) { CurrentIndexChanged?.Invoke(this, e); }