Closed EmaginationStore closed 4 years ago
Please show the project file, I suspect you did not add the image to the project correctly. You need to mark the image with a <Resource>
tag for it to be included in the build, .NET Core has different defaults here than Desktop Framework.
It only works in the Designer because it picks it up from the filesystem relative to the project. If you copy the image to the output directory it may work just as well.
You are quite right, sorry it was not marked as a resource and now works.
So the behaviour in Visual studio differs between WPF for .net Framework and .net Core because when I import an image into a .net Framework WPF project, the image is automatically set as a resource, where .net Core is not.
Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No Problem description: I have a tif image which is saved using CMYK colour space and contains transparency. If placed in an image control on a window, It shows in Visual Studio designer but does not show when debugging the app.
Actual behavior: Image does not show
Expected behavior: The image to be visible
Minimal repro:
tif attached in zip file Untitled-1.zip