Skip to content

[Windows] ImageButton Aspect Property Not Working for Various ImageSource Types #29959

@NafeelaNazhir

Description

@NafeelaNazhir

Description

The Aspect property of the .NET MAUI ImageButton control does not render correctly on Windows for various ImageSource types. The behavior is inconsistent and does not match the expected output seen on other platforms .
Below is a summary of the observed behavior on Windows are not working.

SourceImageType Aspect
FileImageSource AspectFill
UriImageSource Center
StreamImage AspectFill, Center
FontImageSource No Difference for all aspects
Other Platforms Actual Output
Screen.Recording.2025-06-12.at.6.04.06.PM.mov
Screen.Recording.2025-06-12.175605.mp4

Steps to Reproduce

  1. Run the attached sample ImageButtonSample 3.zip
  2. Switch between different image sources (File, Uri, Stream, FontImage) and change the Aspect using the radio buttons(refer table)
  3. Observe the rendering of the ImageButton on Windows.

Expected Output: The ImageButton control should respect the Aspect property consistently across all platforms and image source types.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-buttonButton, ImageButtonpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions