My application uses DevExpress that have a lot of component's dll.
They are already loaded when they are needed. (So the DevExpress's team already do that).
The problem is that my main window (in WPF) have a lot of their controls so when i use new MainWindow()
it hangs for ten seconds or more for loading all the necessary DLL.
Before this main window i have a loading window that connect to a database and do other things. Because i know what controls will be used in the main window, can i load with a progress bar (maybe in another thread?) the referenced dll so that the user can see a progress and will not think the program crashed/is blocked?
Thank you.