I have an Application and therefore a login dialog. The login dialog contains an image.
<Window.Resources>
<BitmapImage x:Key="loginImage" UriSource="login.png" />
</Window.Resources>
. . .
<Image Grid.Column="0" Grid.Row="1" Source="{StaticResource loginImage}"/>
Everything worked fine until I decided to outsource the login dialog in an seperat project to use it again in other applications. In the designer, the image is still visible. But when I start the main application and call the login dialog, the image is missing. All other Content (Labels, Buttons, ...) is working fine. It is only a problem with the image.
Does anyone have a solution?
edit: Ok, now i got i working as expected. It was so simple that it hurts... The solution given by Harris was pretty fine. I only had to rebuild the entire VS solution, not only the class library project. Thanks for the help!