Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Control.ToolTipOpening/ToolTipClosing events #15232

Open
actipro-admin opened this issue Apr 4, 2024 · 0 comments · May be fixed by #15493
Open

Add Control.ToolTipOpening/ToolTipClosing events #15232

actipro-admin opened this issue Apr 4, 2024 · 0 comments · May be fixed by #15493
Labels
api API addition enhancement

Comments

@actipro-admin
Copy link

Is your feature request related to a problem? Please describe.

WPF implements attached ToolTipService.ToolTipOpening and ToolTipClosing events that are AddOwner-ed on FrameworkElement, thereby adding FrameworkElement.ToolTipOpening and ToolTipClosing events and related OnToolTipXXX methods on elements.

These events are handy, especially the opening one, because it allows a tooltip to be customized prior to display or alternatively canceled. The customization ability is a feature we could use.

Describe the solution you'd like

Make a similar design to WPF, at least in terms of adding the two events on Avalonia's Control class so that we can customize or cancel tooltips prior to display. And the ToolTipClosing event is there as well in case people need it for some kind of cleanup.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API addition enhancement
Projects
None yet
2 participants