Skip to content

Commit 9816d41

Browse files
authored
add a few more links to WinUI Gallery (#5625)
1 parent b4d13d8 commit 9816d41

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

hub/apps/develop/ui-input/manage-app-windows.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ The window should have an owner when IsModal=true.
194194

195195
To set the owner window in a WinUI app requires Win32 interop. For more information and example code, see the AppWindow page in the WinUI Gallery sample app.
196196

197+
- [Launch the WinUI Gallery app](winui3gallery://item/AppWindow)
198+
- [Open ModalWindow.xaml.cs on GitHub](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/SamplePages/ModalWindow.xaml.cs)
199+
197200
### Apply a presenter
198201

199202
A presenter can be applied to only a single window at a time. Trying to apply the same presenter to a second window throws an exception. That means that if you have multiple windows, and you want to switch each one into a specific presentation mode, then you need to create multiple presenters of the same kind, and then apply each to its own window.

hub/apps/develop/ui-input/windowing-overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Windowing functionality in a WinUI app is provided by a combination of the XAML
2222
>
2323
> - **Important APIs**: [Window class](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window), [AppWindow class](/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindow)
2424
25+
> [!div class="nextstepaction"]
26+
> [Open the WinUI 3 Gallery app and see Windowing samples in action](winui3gallery://category/MultipleWindows)
27+
28+
[!INCLUDE [winui-3-gallery](../../../includes/winui-3-gallery.md)]
29+
2530
**XAML Window**
2631

2732
In your app, the window object is an instance of the [Microsoft.UI.Xaml.Window](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window) class (or a derived class) that represents the window in your program code. You create it directly with a call to the constructor. The XAML Window is where you attach your app content and manage the lifecycle of your app's windows.

0 commit comments

Comments
 (0)