|
1 | 1 | Window.AppWindow API |
2 | 2 | === |
3 | 3 |
|
4 | | -New API to simplify accessing [AppWindow](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/windowing/windowing-overview) |
| 4 | +New API to simplify accessing [AppWindow](https://learn.microsoft.com/windows/apps/windows-app-sdk/windowing/windowing-overview) |
5 | 5 | functionality through WinUI 3 code. |
6 | 6 |
|
7 | 7 | # Background |
8 | 8 |
|
9 | 9 | XAML has a [Window](https://learn.microsoft.com/uwp/api/Windows.UI.Xaml.Window) API that |
10 | | -internally wraps an hwnd. Windows has an [AppWindow](https://learn.microsoft.com/uwp/api/Windows.UI.WindowManagement.AppWindow) class |
11 | | -that similarly wraps an hwnd in UWP. WinAppSDK has a new [AppWindow](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/Microsoft.UI.Windowing.AppWindow) which wraps an hwnd and works on Desktop. |
| 10 | +internally wraps an HWND. Windows has an [AppWindow](https://learn.microsoft.com/uwp/api/Windows.UI.WindowManagement.AppWindow) class |
| 11 | +that similarly wraps an HWND in UWP. WinAppSDK has a new [AppWindow](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/Microsoft.UI.Windowing.AppWindow) which wraps an HWND and works on Desktop. |
12 | 12 |
|
13 | 13 | You can get an AppWindow from a XAML Window by calling a COM API to get XAML and then |
14 | | -a DLL export API to convert the hwnd to an AppWindow. This spec adds a simple `Window.AppWindow` |
| 14 | +a DLL export API to convert the HWND to an AppWindow. This spec adds a simple `Window.AppWindow` |
15 | 15 | property to make this much easier and more discoverable. |
16 | 16 |
|
17 | | -[XAML Window](https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window) will |
| 17 | +[XAML Window](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window) will |
18 | 18 | expose AppWindow object directly to app developer through an API. Instead of writing a lot of boilerplate |
19 | 19 | code everywhere, app developer can use this API, reducing code bloat, and making AppWindow APIs easily |
20 | 20 | accessible from WinUI 3 code. |
@@ -73,13 +73,13 @@ an observable behavior change from the behavior before the introduction of this |
73 | 73 |
|
74 | 74 | New subclassing order with this new feature change: |
75 | 75 |
|
76 | | -* ContentAppWindowBridge |
77 | | - ↓ |
78 | | -* AppWindow |
79 | | - ↓ |
80 | | -* XAML Window |
| 76 | +- ContentAppWindowBridge<br/> |
81 | 77 | ↓ |
82 | | -* DefaultWndProc |
| 78 | +- AppWindow |
| 79 | +↓ |
| 80 | +- XAML Window |
| 81 | +↓ |
| 82 | +- DefaultWndProc |
83 | 83 |
|
84 | 84 | # API Details |
85 | 85 |
|
|
0 commit comments