Skip to content

Consider allowing primary window definition via the MAUI startup overloaded method as UseMauiApp<TApp, TWindow>() #25101

@egvijayanand

Description

@egvijayanand

Description

Consider allowing primary window definition via the MAUI startup overloaded method as UseMauiApp<TApp, TWindow>()

Public API Changes

var builder = MauiApp.CreateBuilder();
// MainWindow will be primary window of the app
builder.UseMauiApp<App, MainWindow>();
return builder.Build();

Intended Use-Case

This would streamline the Application's code-behind file and more closely integrate the primary Window with the App.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions