i've created a wpf mvvm project, when the main page is app.xaml, which is blank, and it only runs the actual mainwindow.xaml (by using viewmodellocator). this project works fine, i've run it multiply times as an exe. i've created a class library, and built it.
Now i have another project, which for it i referenced the dll created. i would like just run the wpf page. i've been looking for few days now for the right solution, and looked into ResourceDirectory, and something presented in the forum like -
Assembly a = Assembly.Load(System.IO.File.ReadAllBytes("ExportCheck.dll"));
UserControl UserContrl = (UserControl)a.CreateInstance("ExportCheckInstance");
UserContrl.Show();
and i tried other stuff as well, however, i can't seem to just run my wpf. i would much appreciated any help you can offer, since i'm so stuck at the moment. thanks.