Skip to content

Commit de460ef

Browse files
committed
finetune
1 parent 85f7501 commit de460ef

File tree

1 file changed

+9
-1
lines changed
  • src/Avalonia.Samples/CompleteApps/Avalonia.MusicStore

1 file changed

+9
-1
lines changed

src/Avalonia.Samples/CompleteApps/Avalonia.MusicStore/README.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
= Music Store App
22
// --- D O N ' T T O U C H T H I S S E C T I O N ---
3+
ifdef::env-github[]
34
:toc:
45
:toc-placement!:
56
:tip-caption: :bulb:
67
:note-caption: :information_source:
78
:important-caption: :heavy_exclamation_mark:
89
:caution-caption: :fire:
910
:warning-caption: :warning:
11+
endif::[]
12+
13+
ifndef::env-github[]
14+
:icons: font
15+
:icon-set: fas
16+
endif::[]
1017
// ----------------------------------------------------------
1118

1219

@@ -58,6 +65,8 @@ TIP: Some sections are optional. You can skip these if you want to.
5865
=== MVVM pattern
5966
For information and background on the concept of the MVVM pattern, refer to the official documentation link:https://docs.avaloniaui.net/docs/concepts/the-mvvm-pattern/[[here\]].
6067

68+
=== Messengers
69+
This tutorial uses the messaging features of the CommunityToolkit.Mvvm to manage communication between view models and views. This is one approach to share data between different classes, without "knowing each other". If you are not familiar with it, you can read about it in the official documentation link:https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/messenger[[here\]].
6170

6271
== The Solution
6372

@@ -548,7 +557,6 @@ In _MainWindow.axaml.cs_ register a handler for `PurchaseAlbumMessage`. This han
548557
- Assign `MusicStoreViewModel` as its DataContext.
549558
- Call `ShowDialog<AlbumViewModel?>` and pass the result back via m.Reply(...).
550559

551-
// TODO: Add Messages to the "Bevore we start section"
552560

553561
Open _MainWindow.axaml.cs_ and add the following code into MainWindow constructor:
554562
```csharp

0 commit comments

Comments
 (0)