Skip to content

System.Runtime.InteropServices.COMException thrown when setting Image.Aspect = AspectFill via data binding on Windows #29812

Open
@NafeelaNazhir

Description

@NafeelaNazhir

Description

When setting the Aspect property of an Image control to AspectFill through data binding on the Windows platform, the application throws a System.Runtime.InteropServices.COMException. This crash occurs at runtime and does not surface when the same property is assigned directly in XAML.
Note: This issue occurs for the Shadow property when binding, similar to the behavior observed with the AspectFill property on the Windows platform

Image

Steps to Reproduce

  1. Run the attached sample FontImageSample.zip
  2. Select Aspect as AspectFill observe it throws "System.Runtime.InteropServices.COMException".

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-imageImage controlpartner/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

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions