wpf - Caliburn Launch without App.xaml, but with bootstrapper -


i have winforms project want open wpf window wpf user control project. when create instance of wpf window , call show(), bootstrapper isn't loaded. in windows application, it's located in app.xaml, user control project doesn't have this. can do? thanks!

the thing accomplished having bootstrapper in app.xaml's resources instantiation of bootstrapper , keeping reference isn't garbage-collected. try making instantiate this:

public class someclass {     static bootstrapper _bs = new bootstrapper();      ... } 

that make sure it's initialized part of static construction, happens sometime before can create instance of someclass. may have experiment see whether should happen in usercontrol or in window.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -