Browse Source
Merge pull request #7296 from AvaloniaUI/fixes/controlcatalog-web
fix controlcatalog.web
pull/7298/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
5 deletions
-
samples/ControlCatalog.Web/ControlCatalog.Web.csproj
-
samples/ControlCatalog/App.xaml.cs
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
<PropertyGroup> |
|
|
|
<TargetFramework>net6.0</TargetFramework> |
|
|
|
<Nullable>enable</Nullable> |
|
|
|
<WasmBuildNative>True</WasmBuildNative> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
|
|
@ -89,16 +89,18 @@ 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(); |
|
|
|
|
|
|
|
this.AttachDevTools(new Avalonia.Diagnostics.DevToolsOptions() |
|
|
|
{ |
|
|
|
StartupScreenIndex = 1, |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|