Skip to content

Expose the platform window creation on WinUI and Catalyst so users can subclass #16512

Open
@PureWeen

Description

@PureWeen

Description

Currently it's not possible to subclass UIWindow or UI.Xaml.Window

Can we expose the creators for these as PlatformViewFactories like we do on all the other handlers?

https://github.com/dotnet/maui/blob/main/src/Core/src/Platform/iOS/ApplicationExtensions.cs#L93-L97

var winuiWindow = new MauiWinUIWindow();

iOS Notes

Right now on iOS we just create a UIWindow we should probably return a MauiUIWindow if we make it so users can set their own UIWindow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-architectureIssues with code structure, SDK structure, implementation detailslegacy-area-desktopWindows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls))proposal/opent/desktopThe issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions