Skip to content

Button does not behave properly when pointer hovers over the button because it's in focused state #19752

@MartyIX

Description

@MartyIX

Description

Pointer hover does not set proper style for the button in the focused state (the first one here). I expect PointerOver style to be set but it is styled using Focused style.

See complete XAML here.

Steps to Reproduce

  1. Run the application
    • Yellow means "in the 'normal' state"
    • Green means "in the 'focused' state"
    • Blue means "in the 'PointerOver' state"
  2. when my pointer is not over any of the two buttons:
    image
  3. when my pointer is over the bottom button:
    image
  4. when my pointer is over the upper button (my issue):
    image

-> The reason why it doesn't seem to be that the first button is in "focused" state and it does not react to "pointer hover" event. I'm not sure if this is intended or not intended behavior.

Link to public reproduction project repository

https://github.com/MartyIX/MauiRepro202401BtnPointerOver

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows

Did you find any workaround?

No.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions