You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/tutorials/winui-notes/all-notes.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,9 @@ The new data model represents the data required to display multiple notes. Here,
89
89
90
90
Thepreviouscodedeclaresacollectionof `Note` items, named `Notes`, andusesthe `LoadNotes` methodtoloadnotesfromtheapp's local storage.
91
91
92
+
> [!NOTE]
93
+
>The `LoadNotes` methoduses `asyncvoid` insteadof `asyncTask` becauseit's called from the constructor, which cannot be `async`. This fire-and-forget pattern is acceptable here since the method is an event-like initialization routine.
Copy file name to clipboardExpand all lines: hub/apps/tutorials/winui-notes/navigation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ On the note page, you'll add a _back_ button, and there are **Save** and **Delet
24
24
25
25
## New note
26
26
27
-
First, you'll handle navigation for an new note.
27
+
First, you'll handle navigation for a new note.
28
28
29
29
> [!TIP]
30
30
> You can download or view the code for this tutorial from the [GitHub repo](https://github.com/MicrosoftDocs/windows-topic-specific-samples/tree/winui-3/tutorials/winui-notes). To see the code as it is in this step, see this commit: [navigation - new note](https://github.com/MicrosoftDocs/windows-topic-specific-samples/tree/25c23e5976c6b791355b109c7a7a0430ab16a3f9/WinUINotes).
Copy file name to clipboardExpand all lines: hub/apps/tutorials/winui-notes/note.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,7 @@ namespace WinUINotes
287
287
288
288
With this code in place, you can test the app to make sure the note saves and loads correctly.
289
289
290
-
1. Build and run the project by pressing <kbd>F5</kbd>, clicking the Debug "Start" button in the tool bar, or by selecting the menu **Run** > **Start Debugging**.
290
+
1. Build and run the project by pressing <kbd>F5</kbd>, clicking the Debug "Start" button in the tool bar, or by selecting the menu **Debug** > **Start Debugging**.
291
291
1. Type into the text entry box and press the **Save** button.
292
292
1. Close the app, then restart it. The note you entered should be loaded from the device's storage.
Copy file name to clipboardExpand all lines: hub/apps/tutorials/winui-notes/project.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ You need to write a bit of code to finish replacing the system title bar.
153
153
154
154
The [ExtendsContentIntoTitleBar](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.extendscontentintotitlebar) property hides the default system title bar and extends your app XAML into that area. The call to [SetTitleBar](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.window.settitlebar) then tells the system to treat the XAML element you specified (`AppTitleBar`) as the title bar for the app.
155
155
156
-
1. Build and run the project by pressing <kbd>F5</kbd>, clicking the Debug "Start" button in the tool bar, or by selecting the menu **Run** > **Start Debugging**.
156
+
1. Build and run the project by pressing <kbd>F5</kbd>, clicking the Debug "Start" button in the tool bar, or by selecting the menu **Debug** > **Start Debugging**.
157
157
158
158
When you run the app now, you'll see an empty window with a mica background and the XAML title bar that's replaced the system title bar.
0 commit comments