Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional `Start` method overload #2146

merged 2 commits into from Nov 30, 2018


Copy link

commented Nov 29, 2018

Allows for the following entry point structure:

static void Main(string[] args)
       // Avalonia isn't set up at this point, don't use *anything* UI-related here
       // (including your view models)
       BuildAvaloniaApp().Start(AppMain, args);

static void AppMain(Application app, string[] args)
      // Avalonia is ready to go, setup your app if needed and call app.Run(window);
      app.Run(new MainWindow());
@kekekeks kekekeks requested a review from AvaloniaUI/core Nov 29, 2018
grokys approved these changes Nov 29, 2018
@kekekeks kekekeks merged commit 07dba3b into AvaloniaUI:master Nov 30, 2018
2 checks passed
2 checks passed
AvaloniaUI.Avalonia Build #20181129.4 succeeded
WIP Ready for review
@grokys grokys added this to the 0.8.0 milestone Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.