Skip to content

Commit 614fe43

Browse files
authored
Minor design tweaks WinUINotes tutorial (#5307)
* Updating images and XAML * Update intro.md * Update intro.md
1 parent 9a6bba1 commit 614fe43

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

hub/apps/tutorials/winui-notes/includes/all-notes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@ Next, you need to design the view to support the `AllNotes` model.
129129
<CommandBar DefaultLabelPosition="Right">
130130
<AppBarButton Icon="Add" Label="New note"/>
131131
<CommandBar.Content>
132-
<TextBlock Text="Quick notes" Margin="12,8"
132+
<TextBlock Text="Quick notes" Margin="16,8"
133133
Style="{ThemeResource SubtitleTextBlockStyle}"/>
134134
</CommandBar.Content>
135135
</CommandBar>
136136

137137
<ItemsView ItemsSource="{x:Bind notesModel.Notes}"
138-
Grid.Row="1" Margin="24" >
138+
Grid.Row="1" Padding="16" >
139139
<ItemsView.Layout>
140140
<UniformGridLayout MinItemWidth="200"
141-
MinColumnSpacing="20"
142-
MinRowSpacing="20"
141+
MinColumnSpacing="12"
142+
MinRowSpacing="12"
143143
ItemsJustification="Start"/>
144144
</ItemsView.Layout>
145145
</ItemsView>
@@ -201,10 +201,10 @@ You need to specify a [DataTemplate](/windows/windows-app-sdk/api/winrt/microsof
201201
<RowDefinition Height="120"/>
202202
<RowDefinition Height="Auto"/>
203203
</Grid.RowDefinitions>
204-
<TextBlock Text="{x:Bind Text}" Margin="4"
204+
<TextBlock Text="{x:Bind Text}" Margin="12,8"
205205
TextWrapping="Wrap"
206206
TextTrimming="WordEllipsis"/>
207-
<Border Grid.Row="1" Padding="4,6,0,6"
207+
<Border Grid.Row="1" Padding="8,6,0,6"
208208
Background="Gray">
209209
<TextBlock Text="{x:Bind Date}"
210210
Foreground="White"/>
@@ -264,13 +264,13 @@ WinUI includes a variety of built-in resources that you can use to make your app
264264
<RowDefinition Height="120"/>
265265
<RowDefinition Height="Auto"/>
266266
</Grid.RowDefinitions>
267-
<TextBlock Text="{x:Bind Text}" Margin="4"
267+
<TextBlock Text="{x:Bind Text}" Margin="12,8"
268268
TextWrapping="Wrap"
269269
TextTrimming="WordEllipsis"/>
270270

271271
<!-- ↓ Update this. ↓ -->
272-
<Border Grid.Row="1" Padding="4,6,0,6"
273-
Background="{ThemeResource ControlAltFillColorSecondaryBrush}">
272+
<Border Grid.Row="1" Padding="8,6,0,6"
273+
Background="{ThemeResource SubtleFillColorSecondaryBrush}">
274274
<TextBlock Text="{x:Bind Date}"
275275
Style="{StaticResource CaptionTextBlockStyle}"
276276
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>

hub/apps/tutorials/winui-notes/includes/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: 03/26/2025
55
ms.topic: include
66
---
77

8-
This tutorial series demonstrates how to create a WinUI 3 app using XAML and C#. The app you'll create is a note app, where the user can create, save, and load multiple notes.
8+
This tutorial series demonstrates how to create a WinUI 3 app using XAML and C#. The app you'll create is a note app, where the user can create, save, and load multiple notes. 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).
99

1010
In this tutorial, you learn how to:
1111

@@ -18,7 +18,7 @@ In this tutorial, you learn how to:
1818
> - Use navigation to move to and from pages in the app.
1919
> - Use resources like documentation and sample apps to create your own app.
2020
21-
You'll use Visual Studio 2022 to create an app that you can use to enter a note and save it to local app storage. The app will have two pages:
21+
You'll use Visual Studio 2022 to create an app that you can use to enter a note and save it to local app storage. You can find the source code for this app here. The app will have two pages:
2222

2323
- `NotePage` - a page for editing a single note.
2424
- `AllNotesPage` - a page to show all the saved notes.
@@ -27,11 +27,11 @@ The final application is shown below:
2727

2828
_AllNotesPage_
2929

30-
:::image type="content" source="../media/intro/final-all-notes.png" alt-text="Final screenshot of the notes app, showing three save notes.":::
30+
:::image type="content" border="false" source="../media/intro/final-all-notes.png" alt-text="Final screenshot of the notes app, showing three save notes.":::
3131

3232
_NotePage_
3333

34-
:::image type="content" source="../media/intro/final-note.png" alt-text="Final screenshot of the notes app, showing a new blank note.":::
34+
:::image type="content" border="false" source="../media/intro/final-note.png" alt-text="Final screenshot of the notes app, showing a new blank note.":::
3535

3636
## Create the Visual Studio project
3737

hub/apps/tutorials/winui-notes/includes/note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ First, add the new page to the project:
4242
HorizontalAlignment="Right"
4343
Spacing="4"
4444
Grid.Row="1" Grid.Column="1">
45-
<Button Content="Save"/>
45+
<Button Content="Save" Style="{StaticResource AccentButtonStyle}"/>
4646
<Button Content="Delete"/>
4747
</StackPanel>
4848
</Grid>
83 KB
Loading
70.4 KB
Loading

0 commit comments

Comments
 (0)