private void ToolTip_Popup(object sender, PopupEventArgs e) { ToolTip toolTip = (ToolTip)sender; AutoCompleteHintEventArgs args = new AutoCompleteHintEventArgs { ToolTipText = toolTip.GetToolTip(e.AssociatedControl), MemberName = toolTip.ToolTipTitle }; OnToolTipShown(args); }
private void Document_ToolTipShown(object sender, AutoCompleteHintEventArgs e) { hintWindow.ReadOnlyText = e.ToolTipText; }
protected virtual void OnToolTipShown(AutoCompleteHintEventArgs e) { ToolTipShown?.Invoke(this, e); }