Skip to content

[Windows] Fix for ImagePaint Not rendering in View #29205

Closed
HarishwaranVijayakumar wants to merge 3 commits intodotnet:mainfrom
HarishwaranVijayakumar:fixImagePaintNotRendering-28725
Closed

[Windows] Fix for ImagePaint Not rendering in View #29205
HarishwaranVijayakumar wants to merge 3 commits intodotnet:mainfrom
HarishwaranVijayakumar:fixImagePaintNotRendering-28725

Conversation

@HarishwaranVijayakumar
Copy link
Contributor

@HarishwaranVijayakumar HarishwaranVijayakumar commented Apr 25, 2025

Root Cause of the issue

  • The code used an incorrect type reference: PlatformImage, which caused a compile-time due to missing namespace resolution.

Description of Change

  • Updated SetFillPaint in PlatformCanvas to address a platform-specific issue by explicitly referencing Platform.PlatformImage for proper image rendering on windows.

Issues Fixed

Fixes #28725
Fixes #29900

Test Case

Tested the behaviour in the follwing platforms

  • - Windows
  • - Android
  • - iOS
  • - Mac

Output

Before Fix After Fix

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Apr 25, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @@HarishwaranVijayakumar! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Apr 25, 2025
if (paint is ImagePaint imagePaint)
{
if (imagePaint.Image is PlatformImage image)
if (imagePaint.Image is Platform.PlatformImage image)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you include a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsuarezruiz, I have added a test case

@HarishwaranVijayakumar HarishwaranVijayakumar marked this pull request as ready for review April 28, 2025 11:05
@HarishwaranVijayakumar HarishwaranVijayakumar requested a review from a team as a code owner April 28, 2025 11:05
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@PureWeen
Copy link
Member

PureWeen commented Aug 7, 2025

/triage

@PureWeen PureWeen added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/windows labels Aug 7, 2025
@karthikraja-arumugam
Copy link
Contributor

The changes have already been merged in PR #29138, so this pull request is no longer needed.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FillRectangle with SetFillImage only works on Android [Windows] ImagePaint is not rendering in View

4 participants