Skip to content

Question:Why not just use Microsoft.UI.Windowing.Window as the top-level window of the WinUI 3 Window class? #10326

@Gaoyifei1011

Description

@Gaoyifei1011

Question:Why not just use Microsoft.UI.Windowing.Window as the top-level window of the WinUI 3 Window class?

-------------------------------------

问题:为什么不直接使用 Microsoft.UI.Windowing.Window 作为 WinUI 3 Window 类的顶层窗口?


At present, the top-level window class name of the Window window under the WinUI 3 desktop app is WinUIDesktopWin32WindowClass, and the top-level window class name created by the AppWindow class is
Microsoft.UI.Windowing.Window, so why doesn't WinUI 3 desktop version directly use AppWindow create a top-level window instead of creating a separate top-level window?

目前 WinUI 3 桌面应用下的 Window 窗口的顶层窗口类名是 WinUIDesktopWin32WindowClass,而 AppWindow 类创建的顶层窗口类名是 Microsoft.UI.Windowing.Window,所以 WinUI 3 桌面版为什么不直接使用 AppWindow 创建的顶层窗口而是单独创建一个顶层窗口?

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions