Grammar - Clarify ObservableCollection binding explanation (#2237)

Sentence: When a control lists multiple items, such as a ListView, is bound to an ObservableCollection, the two work together to automatically keep the list of items in sync with the collection.

This either needs to say something like, "When a control *which* lists multiple items..." or the sentence would work as, "When a control lists multiple items...*and* is bound to an ObservableCollection..."
This commit is contained in:
Todd Mitchell 2024-05-07 06:05:28 -05:00 коммит произвёл GitHub
Родитель 9b5a402547
Коммит 23fd703c21
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -19,7 +19,7 @@ Currently the **note** view displays a single note. To display multiple notes, c
## Code the AllNotes model
The new model will represent the data required to display multiple notes. This data will be a property that represents a collection of notes. The collection will be an `ObservableCollection` which is a specialized collection. When a control lists multiple items, such as a <xref:Microsoft.Maui.Controls.ListView>, is bound to an `ObservableCollection`, the two work together to automatically keep the list of items in sync with the collection. If the list adds an item, the collection is updated. If the collection adds an item, the control is automatically updated with a new item.
The new model will represent the data required to display multiple notes. This data will be a property that represents a collection of notes. The collection will be an `ObservableCollection` which is a specialized collection. When a control which lists multiple items, such as a <xref:Microsoft.Maui.Controls.ListView>, is bound to an `ObservableCollection`, the two work together to automatically keep the list of items in sync with the collection. If the list adds an item, the collection is updated. If the collection adds an item, the control is automatically updated with a new item.
01. In the **Solution Explorer** pane, open the _Models\\AllNotes.cs_ file.
01. Replace the code with the following snippet: