public MainWindowWithDocking(IMainWindowHolder mainWindowHolder, IDocumentManager documentManager, ILayoutViewModelResolver layoutViewModelResolver, IFileSystem fileSystem) { this.fileSystem = fileSystem; avaloniaDockAdapter = new AvaloniaDockAdapter(documentManager, layoutViewModelResolver); InitializeComponent(); this.AttachDevTools(); mainWindowHolder.Window = this; PersistentDockDataTemplate.DocumentManager = documentManager; }
public MainWindowWithDocking(IMainWindowHolder mainWindowHolder, IDocumentManager documentManager, ILayoutViewModelResolver layoutViewModelResolver, IFileSystem fileSystem) { this.fileSystem = fileSystem; avaloniaDockAdapter = new AvaloniaDockAdapter(documentManager, layoutViewModelResolver); // we have to do it before InitializeComponent! var primaryScreen = Screens.Primary ?? Screens.All.FirstOrDefault(); GlobalApplication.HighDpi = (primaryScreen?.PixelDensity ?? 1) > 1.5f; InitializeComponent(); this.AttachDevTools(); mainWindowHolder.Window = this; PersistentDockDataTemplate.DocumentManager = documentManager; }
public MainWindowWithDocking() { fileSystem = null !; userSettings = null !; avaloniaDockAdapter = null !; }