Skip to content

Could WPF on .net core have Program.Main? #2045

@John0King

Description

@John0King

AFAIK App.Xaml hide the entry-point in WPF .
Could the template of WPF always has the Program.Main entry-point ?

public static void Main(string[] args)
{
    var app = new MyApp.App();
    //app.InitializeComponent();  call this in App's constructor
    app.Run();
}

this will let developer know how Xaml app start, and customize app start easily (control start as command line app or UI app).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-wpfIssues related to WPF in .NET Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions