Skip to content

Where can I find the implementation of OnPointerEnter event of TextBox? #5405

Answered by maxkatz6
hopeko asked this question in Q&A
Discussion options

You must be logged in to vote

This method is called from PointerEnter handler
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Input/InputElement.cs#L205

Why do you need Control/TextBox overrides for this event?
You don't need to reimplement its logic in your method, it can be as simple as:

protected virtual void OnPointerEnter(PointerEventArgs e)
{
    base.OnPointerEnter(e);

    // Your code.
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hopeko
Comment options

Answer selected by hopeko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants