Browse Source

Merge pull request #7296 from AvaloniaUI/fixes/controlcatalog-web

fix controlcatalog.web
repro/minimal-repro-stackoverflow-onewaytosource-binding
Max Katz 4 years ago
committed by Dan Walmsley
parent
commit
8aae2d590e
  1. 1
      samples/ControlCatalog.Web/ControlCatalog.Web.csproj
  2. 7
      samples/ControlCatalog/App.xaml.cs

1
samples/ControlCatalog.Web/ControlCatalog.Web.csproj

@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<WasmBuildNative>True</WasmBuildNative>
</PropertyGroup>
<ItemGroup>

7
samples/ControlCatalog/App.xaml.cs

@ -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();
}

Loading…
Cancel
Save