I have wpf mvvm project structure Like this-
Earliear 'HomeApp' was startup project & Startup URI="MainWindow.xaml". I addeed the loginApp project for login of users & made it as startup project . Now there are two app.xaml file in my solution. One for LoginApp & another that was there previously existing. After login screen , i have to open homeapp screen . When i am trying to call homeapp window its throwing exception.
homeappWindow app=new homeappWindow; app.Show();
app.show() give exception at static resource loading.
My questions are -:
2.How to handle static resource loading if i am calling homewindow app from loginapp as I am getting error at InitializeComponent();? Any help is appreciated!