79751338

Date: 2025-08-30 18:26:01
Score: 1.5
Natty:
Report link

I think I've found a solution.
Try changing the path in ImageSource to
pack://application:,,,/{AssemblyName};component/{anyFolder/image.png}.
In your case, it will look like this:
pack://application:,,,/{AssemblyName};component/Image/NextDay.png
where {AssemblyName} is the name of your project/solution.
This solved the problem for me.

By the way, for your information, if you use Image instead of ImageBrush, there will be no debugging errors, although there will be no image either. But at RunTime everything will work as it does with ImageBrush.

This problem froze my project for two days. I spent two whole days looking for a solution and found this. I doubt this is the right solution, so if anyone finds something better, please let me know.

Reasons:
  • Whitelisted phrase (-1): In your case
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ovter