I have a simple WPF application with the usual static Main () (entry point to the application). Main will perform some initialization operations until the user interface is displayed. Then it will create and launch a launch window. However, what I need to do is pass the user object from the main to the initial window, but I'm not sure how to do it.
My main class containing Main () is as follows:
class App : Application { [STAThread()] static void Main() { MyObject obj;
Obviously, MyObject is my custom object that I would like to access in my initial window. How can i do this?
TIA
source share