Skip to content

Commit bec87cc

Browse files
Merge pull request #3481 from MicrosoftDocs/alvinashcraft/main-uno-updates
Fix links in uno how-to and add link to hello world
2 parents 7068817 + 89d92eb commit bec87cc

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

hub/apps/how-tos/hello-world-winui3.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ In this how-to, we'll use Visual Studio 2022 and WinUI 3 / Windows App SDK to bu
2121

2222
:::image type="content" source="images/hello-world/end-result.png" alt-text="The 'Hello world' app we're building.":::
2323

24-
This how-to is targeted at **beginners** and makes no assumptions about your familiarity with Windows desktop development.
24+
This how-to is targeted at **beginners** and makes no assumptions about your familiarity with Windows desktop development.
2525

2626
<!--todo: The source code for the app we're building in this how-to is available [on Github](https://github.com/microsoft/WindowsAppSDK-Samples).-->
2727

2828
## Prerequisites
2929

30-
- [Visual Studio 2022 and Tools for Windows App SDK](../windows-app-sdk/set-up-your-development-environment.md)
31-
30+
- [Visual Studio 2022 and Tools for Windows App SDK](../windows-app-sdk/set-up-your-development-environment.md)
3231

3332
## Create a new project using the WinUI 3 C# project template
3433

@@ -102,7 +101,6 @@ Starting from the top and working our way down:
102101
| `MainWindow.xaml.cs` | This code-behind file contains the business logic concerns associated with your app's main window. |
103102
| `Package.appxmanifest` | This [package manifest file](/uwp/schemas/appxpackage/uapmanifestschema/generate-package-manifest) lets you configure publisher information, logos, processor architectures, and other details that determine how your app appears in the Windows Store. |
104103

105-
106104
## Display "Hello world!"
107105

108106
To display "Hello world!" instead of the "Click me" button, navigate to `MainWindow.xaml`. You should see a `StackPanel` control's XAML markup:
@@ -152,7 +150,7 @@ If you restart your app, you should see a red `Hello world!`:
152150

153151
Add `this.Title = "Hello world!";` to your `MainWindow.xaml.cs` code-behind file:
154152

155-
```csharp
153+
```csharp
156154
public MainWindow()
157155
{
158156
this.InitializeComponent();
@@ -166,7 +164,6 @@ If you restart your app, you should now see `Hello world!` in both the body and
166164

167165
Congratulations! You've built your first Windows App SDK / WinUI 3 app.
168166

169-
170167
## Recap
171168

172169
Here's what you accomplished in this how-to:
@@ -179,7 +176,6 @@ Here's what you accomplished in this how-to:
179176
6. You reviewed **reference docs** to better understand the **`StackPanel` control's properties**.
180177
7. You updated your main window's **title bar**.
181178

182-
183179
## Full code files
184180

185181
<!--todo: embed from github -->
@@ -290,7 +286,6 @@ namespace Hello_World
290286
}
291287
```
292288

293-
294289
## FAQ
295290

296291
**Q: What does "packaged" mean?**
@@ -299,17 +294,17 @@ Windows apps can be delivered to end-users using a variety of application packag
299294

300295
**Q: Can I use VS Code to build WinUI 3 apps?**
301296

302-
Although technically possible, we strongly recommend using Visual Studio 2019 / 2022 to build desktop apps with WinUI 3 / Windows App SDK. See [the Windows developer FAQ](../get-started/windows-developer-faq.yml#do-i-need-to-use-visual-studio-to-build-winui-3-apps) for more information.
297+
Although technically possible, we strongly recommend using Visual Studio 2019 / 2022 to build desktop apps with WinUI 3 / Windows App SDK. See [the Windows developer FAQ](../get-started/windows-developer-faq.yml#do-i-need-to-use-visual-studio-to-build-winui-3-apps) for more information.
303298

304299
**Q: Can I use C++ to build WinUI 3 apps?**
305300

306301
Yes! If you'd like to see this how-to updated with C++ guidance, [request an update on Github](https://github.com/MicrosoftDocs/windows-dev-docs/issues/new?title=Update%20request%3A%20How%20to%20build%20a%20hello%20world%20app&body=%28How%20can%20we%20help%3F%29&assignee=matchamatch) and we'll make it happen.
307302

308-
309303
## Related
310304

311-
- [Sample applications for Windows development](../get-started/samples.md)
312-
- [Windows developer FAQ](../get-started/windows-developer-faq.yml)
313-
- [Windows developer glossary](../get-started/windows-developer-glossary.md)
314-
- [Windows development best practices](../get-started/best-practices.md)
305+
- [Sample applications for Windows development](../get-started/samples.md)
306+
- [Windows developer FAQ](../get-started/windows-developer-faq.yml)
307+
- [Windows developer glossary](../get-started/windows-developer-glossary.md)
308+
- [Windows development best practices](../get-started/best-practices.md)
309+
- [How to target multiple platforms with your WinUI 3 app](uno-multiplatform.md)
315310
<!-- - [How to build a form with bidirectional data binding](todo) -->

hub/apps/how-tos/uno-multiplatform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to target multiple platforms with your WinUI 3 app
33
description: Reach more users with a single WinUI 3 / .NET codebase using Uno Platform.
44
ms.topic: article
5-
ms.date: 3/14/2023
5+
ms.date: 3/31/2023
66
keywords: uno platform, winui
77
ms.author: aashcraft
88
author: alvinashcraft
@@ -14,7 +14,7 @@ content-type: how-to
1414

1515
# How to target multiple platforms with your WinUI 3 app
1616

17-
Once you've [created](/hub/apps/how-tos/hello-world-winui3.md) a starter Hello World WinUI 3 app, you might be wondering how to reach more users with a single codebase. This how-to will use [Uno Platform](https://platform.uno/) to expand the reach of your existing application enabling reuse of the business logic and UI layer across native mobile, web, and desktop.
17+
Once you've [created](hello-world-winui3.md) a starter Hello World WinUI 3 app, you might be wondering how to reach more users with a single codebase. This how-to will use [Uno Platform](https://platform.uno/) to expand the reach of your existing application enabling reuse of the business logic and UI layer across native mobile, web, and desktop.
1818

1919
:::image type="content" source="images/hello-world/uno-hello-world.png" alt-text="The 'Hello world' app running in the browser.":::
2020

@@ -89,7 +89,7 @@ A banner at the top of the editor may ask to reload projects, click **Reload pro
8989

9090
## Building your app
9191

92-
Now that you've generated the functional starting point of your multi-platform WinUI application, you can copy markup into it from the Hello World WinUI 3 project outlined in the [previous](/hub/apps/how-tos/hello-world-winui3.md) tutorial.
92+
Now that you've generated the functional starting point of your multi-platform WinUI application, you can copy markup into it from the Hello World WinUI 3 project outlined in the [previous](hello-world-winui3.md) tutorial.
9393

9494
You should see the following default file structure in your Solution Explorer:
9595

0 commit comments

Comments
 (0)