Microsoft-ui-xaml: Question: System.Windows.Window part of WinUI?

Created on 27 Nov 2019  路  7Comments  路  Source: microsoft/microsoft-ui-xaml

WinUI is looking great and I'm looking forward to translating my WPF apps to use it.

One of the areas we struggle with is System.Windows.Window, specifically all the UWP goodness like control of the title bar, extending the UI into the chrome area.

Will there be a Windows.UI.Xaml.Window with full control similar to UWP ?

question

Most helpful comment

Do I understand that the original question is about bringing CoreApplicationView capabilities to WPF's Window? I think such a question/discussion should be asked in the https://github.com/dotnet/wpf repo.

WinUI will be bringing its own top-level Window abstraction for the WinUI Desktop scenario and, where possible, it will do the things that you could do in UWP like drawing in the title bar. What the full API and feature set looks like is not yet determined.

All 7 comments

Allowing multiple Windows in UWP now WinUI is something that I believe Microsoft promised back at Build 2018.

https://mspoweruser.com/microsoft-finally-makes-it-easier-to-create-multi-window-experiences-in-uwp-apps/

Take a look at AppWindow Preview AppWindow Class Docs

I believe this is coming in WinUI 3.0 now? Never used it myself.

Sounds like you already know about this too:
https://docs.microsoft.com/en-us/windows/uwp/design/shell/title-bar

Allowing multiple Windows in UWP now WinUI is something that I believe Microsoft promised back at Build 2018.

https://mspoweruser.com/microsoft-finally-makes-it-easier-to-create-multi-window-experiences-in-uwp-apps/

Take a look at AppWindow Preview AppWindow Class Docs

I believe this is coming in WinUI 3.0 now? Never used it myself.

Sounds like you already know about this too:
https://docs.microsoft.com/en-us/windows/uwp/design/shell/title-bar

I asked if this was coming to WPF, not UWP - we already have this in UWP as you mentioned.

WinUI is the where everything is moving to.

There are some WPF libraries that implement the "ExtendViewIntoTitleBar" feature. Just to name a couple:

Hey guys. Glad to see I'm not the only one hoping for a UWP-Style Window control in WinUI. In case anyone is curious, I previously filed a report asking about this where I received a response. Unifying the windows across all WinUI apps would improve consistency and help with other projects such as Windows Terminal where what appears to be a custom window is in use.

Really hoping to see work done in this area for either v3.0 or 3.1

It would be good to have some "proper" design resources, based around building core elements of an app, and showing how the Windows Shell of the future, and Inbox Apps which should be held up as exemplar for best practice - design and build those UI bits.

Common dialogs, Common navigation patterns, Common templates, etc.

There should be templates for adding common Content Dialogs, menus, flyouts - with code and behavioural guidance which can be copy and pasted into an app.

Anyway, back to the core of this issue. I made a discussion issue #1323 precisely about top level elements coming to WinUI, including a Window element. This seems like a WPF ask, rather than a WinUI ask, but WinUI for Desktop should have access to these things.

Do I understand that the original question is about bringing CoreApplicationView capabilities to WPF's Window? I think such a question/discussion should be asked in the https://github.com/dotnet/wpf repo.

WinUI will be bringing its own top-level Window abstraction for the WinUI Desktop scenario and, where possible, it will do the things that you could do in UWP like drawing in the title bar. What the full API and feature set looks like is not yet determined.

Was this page helpful?
0 / 5 - 0 ratings