/// <summary> /// Raises <see cref="Focus"/> event /// </summary> protected virtual void OnFocus(FocusEventArgs e) { if (HasEvents) { var handler = (EventHandler<FocusEventArgs>)Events[FocusEvent]; if (handler != null) { e.Handled = true; handler(this, e); } } }
/// <summary> /// Handles focus events /// </summary> void ISciterBehavior.ProcessFocus(FocusEventArgs e) { OnFocus(e); }