Skip to content

[Windows] - ImageSource.FromFile fails when image in subfolder #31256

@NirmalKumarYuvaraj

Description

@NirmalKumarYuvaraj

Description

ImageSource.FromFile("subdir/image") results in Image not rendered in View.

var image = new Image
{
	Source = ImageSource.FromFile("subfolder/dotnet_bot.png"),
	AutomationId = "ImageView"
};

Steps to Reproduce

  1. Clone and deploy the sample in windows platform.
  2. Notice the image from subfolder is not rendered

Link to public reproduction project repository

https://github.com/munkii/MauiAppImageAssetsInSubFolders

Version with bug

9.0.100 SR10

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-imageImage loading, sources, cachingpartner/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