In my xaml I have an image on a button with following codeI'm now wondering if I can do this without the fully qualified path and reference the image added to the assembly Resources.resx ?Code:<Image Source="/MyAssembly;Component/Resources/MyImage.png" Width="32" />
Tried this by usingBut then I get a complaint that this StaticResource reference cannot be found.Code:xmlns:prop="clr-namespace:MyAssembly.Properties"> .. <Image Source="{Binding Source={x:Static prop:Resources.MyImage}}" />
Can anyone help me out ?


Reply With Quote
Bookmarks