Skip to content

Commit 36f3e7f

Browse files
Merge pull request #5627 from MicrosoftDocs/main
Auto Publish – main to live - 2025-07-25 05:00 UTC
2 parents c2cd1d3 + debb7e7 commit 36f3e7f

File tree

9 files changed

+29
-26
lines changed

9 files changed

+29
-26
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.

hub/apps/how-tos/chatgpt-openai-winui3.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
11
---
22
title: How to add OpenAI chat completions to a WinUI desktop app
3-
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's chat completions API into the app.
3+
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's text generation and prompting APIs into the app.
44
ms.topic: how-to
5-
ms.date: 11/26/2024
5+
ms.date: 07/24/2025
66
keywords: windows app sdk, winappsdk, winui3, openai, chatgpt
77
ms.localizationpriority: medium
88
ms.custom: template-quickstart
99
audience: new-desktop-app-developers
1010
content-type: how-to
11-
#Customer intent: As a Windows developer, I want to learn how to integrate OpenAI's chat completions API into my WinUI 3 / Windows App SDK desktop app so that I can build a chat-like interface that generates responses to messages.
11+
#Customer intent: As a Windows developer, I want to learn how to integrate OpenAI's text generation and prompting APIs into my WinUI 3 / Windows App SDK desktop app so that I can build a chat-like interface that generates responses to messages.
1212
---
1313

1414
# Add OpenAI chat completions to your WinUI 3 / Windows App SDK desktop app
1515

16-
In this how-to, you'll learn how to integrate OpenAI's API into your WinUI 3 / Windows App SDK desktop app. We'll build a chat-like interface that lets you generate responses to messages using OpenAI's [chat completions API](https://platform.openai.com/docs/guides/text-generation/chat-completions-api):
16+
In this how-to, you'll learn how to integrate OpenAI's API into your WinUI 3 / Windows App SDK desktop app. We'll build a chat-like interface that lets you generate responses to messages using OpenAI's [text generation and prompting APIs](https://platform.openai.com/docs/guides/text):
1717

1818
:::image type="content" source="images/chatgpt-openai/long-story.png" alt-text="A screenshot of a less minimal WinUI chat app.":::
1919

2020
<!--todo: The source code for the app we're building in this how-to is available todo -->
2121

2222
## Prerequisites
2323

24-
- Set up your development computer (see [Get started with WinUI](../get-started/start-here.md)).
25-
- Familiarity with the core concepts in *[How to build a Hello World app using C# and WinUI 3 / Windows App SDK](./hello-world-winui3.md)* - we'll build upon that how-to in this one.
24+
- Set up your development computer (see [Start developing Windows apps](../get-started/start-here.md)).
25+
- Familiarity with the core concepts in *[How to build a Hello World app using C# and WinUI / Windows App SDK](./hello-world-winui3.md)* - we'll build upon that how-to in this one.
2626
- An OpenAI API key from your [OpenAI developer dashboard](https://platform.openai.com/api-keys).
2727
- An OpenAI SDK installed in your project. Refer to the [OpenAI documentation](https://platform.openai.com/docs/libraries) for a list of community libraries. In this how-to, we'll use the official [OpenAI .NET API library](https://github.com/openai/openai-dotnet).
2828

2929
## Create a project
3030

31-
1. Open Visual Studio and create a new project via `File` > `New` > `Project`.
32-
1. Search for `WinUI` and select the `Blank App, Packaged (WinUI 3 in Desktop)` C# project template.
33-
1. Specify a project name, solution name, and directory. In this example, our `ChatGPT_WinUI3` project belongs to a `ChatGPT_WinUI3` solution, which will be created in `C:\Projects\`.
34-
35-
After creating your project, you should see the following default file structure in your Solution Explorer:
36-
37-
:::image type="content" source="images/chatgpt-openai/collapsed-file-structure-chatgpt.png" alt-text="A screenshot of the default directory structure in Solution Explorer.":::
31+
You create a new WinUI project in Visual Studio by following the steps in the [Create and launch your first WinUI app](/windows/apps/get-started/start-here#3-create-and-launch-your-first-winui-app) section of the [Start developing Windows apps](../get-started/start-here.md) article. For this example, enter `ChatGPT_WinUI3` as the project name and `ChatGPT_WinUI3` for the solution name when entering the project details in the dialog.
3832

3933
## Set your environment variable
4034

@@ -176,7 +170,7 @@ Let's make the following improvements to the chat interface:
176170
- Add a `ScrollViewer` to the `StackPanel` to enable scrolling.
177171
- Add a `TextBlock` to display the GPT response in a way that's more visually distinct from the user's input.
178172
- Add a `ProgressBar` to indicate when the app is waiting for a response from the GPT API.
179-
- Center the `StackPanel` in the window, similar to ChatGPT's [web interface](https://chatgpt.com/).
173+
- Center the `StackPanel` in the window, similar to ChatGPT's [web interface](https://chatgpt.com).
180174
- Ensure that messages wrap to the next line when they reach the edge of the window.
181175
- Make the `TextBox` larger and responsive to the `Enter` key.
182176

@@ -392,7 +386,7 @@ Your new-and-improved chat interface should look something like this:
392386
Here's what you accomplished in this how-to:
393387

394388
1. You added OpenAI's API capabilities to your WinUI 3 / Windows App SDK desktop app by installing the official OpenAI library and initializing it with your API key.
395-
1. You built a chat-like interface that lets you generate responses to messages using OpenAI's [chat completions API](https://platform.openai.com/docs/guides/text-generation/chat-completions-api).
389+
1. You built a chat-like interface that lets you generate responses to messages using OpenAI's [text generation and prompting APIs](https://platform.openai.com/docs/guides/text).
396390
1. You improved the chat interface by:
397391
1. adding a `ScrollViewer`,
398392
1. using a `TextBlock` to display the GPT response,

hub/apps/how-tos/dall-e-winui3.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to add DALL-E image generation to your WinUI app
33
description: Get started with WinUI 3 / Windows App SDK by integrating DALL-E image capabilities into your desktop app.
44
ms.topic: how-to
5-
ms.date: 11/26/2024
5+
ms.date: 07/24/2025
66
keywords: windows app sdk, winappsdk, winui3
77
ms.localizationpriority: medium
88
ms.custom: template-quickstart
@@ -17,8 +17,8 @@ In this how-to, we'll integrate DALL-E's image generation capabilities into your
1717

1818
## Prerequisites
1919

20-
- Set up your development computer (see [Get started with WinUI](../get-started/start-here.md)).
21-
- A functional chat interface into which this capability will be integrated. See *[How to add OpenAI chat completions to your WinUI 3 / Windows App SDK desktop app](./chatgpt-openai-winui3.md)* - we'll demonstrate how to integrate DALL-E into the chat interface from this how-to.
20+
- Set up your development computer (see [Start developing Windows apps](../get-started/start-here.md)).
21+
- A functional chat interface into which this capability will be integrated. See *[How to add OpenAI chat completions to your WinUI / Windows App SDK desktop app](./chatgpt-openai-winui3.md)* - we'll demonstrate how to integrate DALL-E into the chat interface from this how-to.
2222
- An OpenAI API key from your [OpenAI developer dashboard](https://platform.openai.com/api-keys) assigned to the `OPENAI_API_KEY` environment variable.
2323
- An OpenAI SDK installed in your project. Refer to the [OpenAI documentation](https://platform.openai.com/docs/libraries) for a list of community libraries. In this how-to, we'll use the official [OpenAI .NET API library](https://github.com/openai/openai-dotnet).
2424

@@ -357,6 +357,6 @@ namespace ChatGPT_WinUI3
357357

358358
## Related content
359359

360-
- [OpenAI API Documentation](https://platform.openai.com/docs/)
360+
- [OpenAI API Documentation](https://platform.openai.com/docs/overview)
361361
- [Windows App SDK Samples](../get-started/samples.md)
362362
- [OpenAI .NET library on GitHub](https://github.com/openai/openai-dotnet)

hub/apps/publish/whats-new-individual-developer.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ ms.localizationpriority: medium
88

99
# What’s new in onboarding for individual developers
1010

11-
Individual developers will be able to use a new onboarding process to publish apps to the Microsoft Store without paying any registration fees. We’ll soon start to progressively roll out the new onboarding process, beginning with the India market.
11+
A new onboarding process now allows individual developers to publish apps to the Microsoft Store without incurring any registration fees. This process is currently available to developers in India, and will be expanded to other markets gradually.
12+
13+
This documentation will be updated as the new onboarding process becomes available to other markets.
1214

13-
This page will be updated when the new onboarding process is available.
1415

1516
## What’s New
1617

hub/powertoys/advanced-paste.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ From the Settings menu, the following options can be configured:
2727

2828
| Setting | Description |
2929
| :--- | :--- |
30-
| Enable Paste with AI | Enables the AI-powered paste feature. An OpenAI API key is required (requires an account on [platform.openai.com](https://platform.openai.com/)). See [Paste text with AI](#paste-text-with-ai) for more information. |
30+
| Enable Paste with AI | Enables the AI-powered paste feature. An OpenAI API key is required (requires an account on [platform.openai.com](https://platform.openai.com/docs/overview)). See [Paste text with AI](#paste-text-with-ai) for more information. |
3131
| Enable advanced AI | Enables the Advanced AI feature which allows [Semantic Kernel](/semantic-kernel/overview/) to be used to define a chain of actions to be performed when using "Paste with AI". See [Paste with Advanced AI](#paste-with-advanced-ai) for more information.<br/><br/>This setting is off and disabled when Enable Paste with AI is disabled. When enabling Enable Paste with AI, Enable advanced AI is also enabled by default, allowing users immediate access to the feature. |
3232
| Custom format preview | Enable to preview the output of the custom format before pasting. |
3333
| Clipboard history | Enable to automatically save clipboard history. |
@@ -159,7 +159,7 @@ AI output when prompting to "Format the text as if it were written by Mark Twain
159159
> Say, have you heard the news? The newfangled Advanced Paste feature in PowerToys is finally here! It's a nifty tool that's sure to save you time and spruce up your writing. If you're in the market for a bit of writing wizardry, this here Advanced Paste just might be the ticket for ya.
160160
161161
> [!NOTE]
162-
> As with any AI tool, the quality of the output is dependent on the quality of the input. The more context you provide, the better the AI will be able to understand and respond to your request. Be sure to carefully review the output before using it. Please see OpenAI's [privacy](https://openai.com/policies/privacy-policy) and [terms](https://openai.com/policies/terms-of-use) pages for more info on AI usage in this feature.
162+
> As with any AI tool, the quality of the output is dependent on the quality of the input. The more context you provide, the better the AI will be able to understand and respond to your request. Be sure to carefully review the output before using it. Please see OpenAI's [privacy](https://openai.com/policies/privacy-policy/) and [terms](https://openai.com/policies/terms-of-use/) pages for more info on AI usage in this feature.
163163
164164
### Paste with Advanced AI
165165

hub/powertoys/dsc-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,4 +490,4 @@ PowerOcr is the internal name for Text Extractor.
490490

491491
## Contributing
492492

493-
Refer to the [relevant devdocs](https://github.com/microsoft/PowerToys/tree/main/doc/devdocs/settingsv2/dsc-configure.md) section in the developer documentation to start working on the DSC module.
493+
Refer to the [relevant devdocs](https://github.com/microsoft/PowerToys/blob/main/doc/devdocs/core/settings/dsc-configure.md) section in the developer documentation to start working on the DSC module.

hub/powertoys/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Copilot is powered by AI, so surprises and mistakes are possible. For more infor
8686

8787
### Extracting the MSI from the bundle
8888

89-
Make sure to have [WiX Toolset v3](https://wixtoolset.org/docs/wix3) installed. The command doesn't work with WiX Toolset v4.
89+
Make sure to have [WiX Toolset v3](https://docs.firegiant.com/wix/wix3/) installed. The command doesn't work with WiX Toolset v4.
9090

9191
This PowerShell example assumes the default install location for WiX Toolset and that the PowerToys installer has been downloaded to the Windows desktop.
9292

uwp/security/intro-to-secure-windows-app-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ The app model also manages the app lifecycle. It limits the background execution
273273

274274
When memory resources on the device are running low, Windows frees memory space by terminating apps. This lifecycle model forces apps to persist data whenever they’re suspended, because there is no additional time available between suspension and termination.
275275

276-
For more information, see [It's Universal: Understanding the Lifecycle of a Windows 10/11 Application](https://visualstudiomagazine.com/articles/2015/09/01/its-universal.aspx).
276+
For more information, see [It's Universal: Understanding the Lifecycle of a Windows 10 Application](https://visualstudiomagazine.com/articles/2015/09/01/its-universal.aspx).
277277

278278
## 4.2 Stored credential protection
279279

0 commit comments

Comments
 (0)