|
|
|
@ -89,9 +89,16 @@ namespace ControlCatalog |
|
|
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime) |
|
|
|
{ |
|
|
|
desktopLifetime.MainWindow = new MainWindow(); |
|
|
|
|
|
|
|
this.AttachDevTools(new Avalonia.Diagnostics.DevToolsOptions() |
|
|
|
{ |
|
|
|
StartupScreenIndex = 1, |
|
|
|
}); |
|
|
|
} |
|
|
|
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewLifetime) |
|
|
|
{ |
|
|
|
singleViewLifetime.MainView = new MainView(); |
|
|
|
} |
|
|
|
|
|
|
|
base.OnFrameworkInitializationCompleted(); |
|
|
|
} |
|
|
|
|