Uri

/WpfApplication1;component/Images/Untitled.png", UriKind.Relative); 

This will load a image called "Untitled.png" in a folder called "Images" with its "Build Action" set to "Resource" in an assembly called "WpfApplication1".

原文地址:https://www.cnblogs.com/ysharp/p/2079969.html