Make sure the Build action
is set to Content
on the properties of the image file in Visual Studio.
If you want the Build action
to be set to Resource
, use the following URI syntax:
new Uri("/YOUR_PROJECT_NAME;component/Assets/Tiles/gradiant-mask.png", UriKind.Relative)
Using the Content
build action is recommended.