This project is read-only.
1
Vote

ResourceReferenceKeyNotFoundException

description

I need to load main window from splash screen, in my project.
Thus, while loading a elysium window from code behind it throws following exception:
__
An exception of type 'System.Windows.ResourceReferenceKeyNotFoundException' occurred in PresentationFramework.dll but was not handled in user code

Additional information: 'Framework.UI.Controls.Window' resource not found.__

Note: The window loads successfully with 'StartupUri="MainWindow.xaml"'. However, throws the exception while trying to load by overriding OnStartup in App.xaml:
' protected override void OnStartup(StartupEventArgs e)
    {
        MainWindow mn = new MainWindow();
        mn.Show();
}

comments