public MainWindow() { InitializeComponent(); var factory = new AppWindowWidgetFactory(); MainWindowHelper.configure(this, Panel, factory); }