Skip to content

Disabled Button Visual State doesn't Update Image Source #10709

@mkehoe-Extron

Description

@mkehoe-Extron

Description

When you change the state of a button to disabled, the visual state manager is not applying changes to the ImageSource.

This issue is on Android. Works as expected on Windows.

Issue exists on both latest dotnet 6 and dotnet 7 preview.

Steps to Reproduce

  1. Launch the sample app.
  2. Click the top button and it will set the bottom button state to disabled.
  3. You will notice the text color change on the bottom button. The image source is supposed to change to as well, but it stays as the original color.

Link to public reproduction project repository

https://github.com/mkehoe-Extron/MauiAndroidButtonStateIssue

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android API 31

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions