I want to be able to instantiate certain classes,etc. when I start my WPF app. I initially had the application and window classes auto-generated when I created my project, but they did not seem to give me access to startup events.
To this end, I have tried to create my own startup class, but I am not having much luck. I tried to create a class that inherits from 'Application' and defined a Main() entry point. The app launches but does not seem to fire the Startup event.
How does one go about doing this so that I have full control over my WPF app and can have access to the various application events like Startup?
Shared Sub Main()
Dim app As New Application
Dim MainWindow As New Window
Private Sub GKMEMRStartup_Startup(ByVal sender As Object, ByVal e As System.Windows.StartupEventArgs) Handles Me.Startup