Skip to content

Commit 62ec443

Browse files
committed
finetune
1 parent 85f7501 commit 62ec443

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
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::[]
1012
// ----------------------------------------------------------
1113

1214

@@ -58,6 +60,8 @@ TIP: Some sections are optional. You can skip these if you want to.
5860
=== MVVM pattern
5961
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\]].
6062

63+
=== Messengers
64+
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\]].
6165

6266
== The Solution
6367

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

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

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

0 commit comments

Comments
 (0)