I am making my first wpf application which now just implements a "floor" with a texture, viewed from above. when running I get this exception:
Provide value on System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '49' and line position '38'
The line they talk about is
<ImageBrush ImageSource="/wood1_1000X1000.jpg" />.
I also tried with a png extension. The image has a resolution of 1000 x 1000.
Assuming the image is:
You can reference it like this:
<ImageBrush ImageSource=
"pack://application:,,,/YourProjectName;component/Images/wood1_1000X1000.jpg";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With