Image Opacity Mask loading in UserControl but not on Page
I ensured that they're in the same local and I even tried putting them all in the same folder but nothing helped
![No description](https://cdn.answeroverflow.com/1267548008786952282/Screenshot_2024-07-29_195945.png)
![No description](https://cdn.answeroverflow.com/1267548009265106994/Screenshot_2024-07-29_200216.png)
![No description](https://cdn.answeroverflow.com/1267548009533800562/Screenshot_2024-07-29_200232.png)
7 Replies
Please right-click the image in solution explorer
make sure build action is set to Resource
It is, and it's set to copy if newer, but I also tried copy always and none
Did you build the app?
remember this
$rulesofwpf
❌ Avoid the WPF Designer to eliminate a category of confusing bugs
Yes and it always crashes when it's trying to initialize the image
The error is the same as in the editor
I got around it by introducing it as a resourcedictionary element on top of the page
Try to load it like this