How can I access a resource image within XAML in a user control library?
问题 I'm writing a library of WPF user controls and am having trouble with a resource image that I'm trying to access via some XAML. Just for fun, the image displays as expected at design time and only fails at run time. I've tried setting the build action to "none", "content", "resource" and "embedded resource", but I keep getting the following cryptic exception: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '18' and line position '6'.