Skip to content

System.Runtime.InteropServices.COMException thrown when setting Shadow via data binding on Windows #30778

@nivetha-nagalingam

Description

@nivetha-nagalingam

Description

When using data binding to set the Shadow property on a GraphicsView control in .NET MAUI 9 applications running on Windows (WinUI), a System.Runtime.InteropServices.COMException is thrown. This occurs particularly when using MVVM pattern with INotifyPropertyChanged.

Image

Steps to Reproduce

  • Launch the application on Windows. GraphicsViewShadowIssue.zip
  • Trigger shadow property updates through UI interaction (e.g., input fields, buttons).
  • Observe the exception

Expected Behavior:

  • Shadow properties should update smoothly via data binding without exceptions
  • GraphicsView should reflect shadow changes immediately

Actual Behavior:

  • System.Runtime.InteropServices.COMException is thrown.

Link to public reproduction project repository

No response

Version with bug

9.0.90 SR9

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

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingpartner/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