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
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