mysteryx93 / HanumanInstitute.MvvmDialogs

Library simplifying the concept of opening dialogs from a view model when using MVVM
MIT License
173 stars 9 forks source link

Use OpenDialogHostAsync from any place #33

Closed Guddiny closed 7 months ago

Guddiny commented 8 months ago

Is it Possible to use OpenDialogHostAsync from any ViewModel passed as parent? For me it doesn't work with exception No view found with specified ownerViewModel of type .... but works well if i call dialog service from MainWindowViewModel Thanks.

mysteryx93 commented 8 months ago

Your ViewModel should contain a Parent property that contains the parent ViewModel, then you can use it to show the dialog.

Guddiny commented 7 months ago

OK . Understood. Thank you.