Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in Toast #3

Open
NPatch opened this issue Oct 16, 2022 · 0 comments
Open

Images in Toast #3

NPatch opened this issue Oct 16, 2022 · 0 comments

Comments

@NPatch
Copy link

NPatch commented Oct 16, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant