This commit is contained in:
Deniz 2023-05-20 14:58:36 +02:00 коммит произвёл GitHub
Родитель 4e7a61f462
Коммит daaad1b899
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -130,7 +130,7 @@ private async Task DoShowDialogAsync(InteractionContext<MusicStoreViewModel, Alb
}
```
This method creates the MusicStoreWindow, it sets its `DataContext` to interaction.Input, which is the instance of the `ViewModel`.
This method creates the MusicStoreWindow, it sets its `DataContext` to interaction.Input, which is the instance of the `MusicStoreViewModel`.
It then calls `await dialog.ShowDialog<AlbumViewModel?>(this)` on the dialog, passing `this` as an argument, showing that the `MainWindow` currently represented by `this` pointer will be the `owner` or `parent` window.