Skip to content

Commit 6ad17b0

Browse files
committed
Add note about single instancing with C# and winui
Added a note pointing to a windows dev blog post to address issue: #3496
1 parent fa67cd2 commit 6ad17b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hub/apps/windows-app-sdk/applifecycle/applifecycle-instancing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Describes how to use app instancing features with the app lifecycle API (Windows App SDK).
33
title: App instancing with the app lifecycle API (Windows App SDK)
44
ms.topic: article
5-
ms.date: 11/16/2021
5+
ms.date: 03/07/2024
66
keywords: AppLifecycle, Windows, ApplicationModel, instancing, single instance, multi instance
77
ms.localizationpriority: medium
88
---
@@ -20,6 +20,9 @@ To use the app lifecycle API in the Windows App SDK:
2020

2121
## Single-instance apps
2222

23+
> [!NOTE]
24+
> For an example of how to implement single instancing in a WinUI 3 app with C#, see [Making the app single-instanced](https://blogs.windows.com/windowsdeveloper/2022/01/28/making-the-app-single-instanced-part-3/) on the Windows developer blog.
25+
2326
Apps are single-instanced if there can be only one main process running at a time. Attempting to launch a second instance of a single-instanced app typically results in the first instance's main window being activated instead. Note that this only applies to the main process. Single-instanced apps can create multiple background processes and still be considered single instanced.
2427

2528
UWP apps are single-instanced by default. but have the ability to become multi-instanced by deciding at launch-time whether to create an additional instance or activate an existing instance instead.

0 commit comments

Comments
 (0)