Skip to content

Images in Toast #3

@NPatch

Description

@NPatch

I've been trying to load an image (be it hero or inline) from my project files like so:

builder.AddInlineImage("file://myfile.jpg");

which doesn't work.
Documentation says that unpackaged app cannot use https and it should use appdata, which means you have to add code like this repo has to move the images to AppData (be it local or roaming) in order for "ms-appdata://" to work.

Is there no way to use static images from the project? They are to be eventually packaged into the app anyway. Does one need to use AppData while developing and switch to packaged resources when releasing?

What's the best practice here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions