Closed Guddiny closed 7 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.
OpenDialogHostAsync
ViewModel
No view found with specified ownerViewModel of type ....
MainWindowViewModel
Your ViewModel should contain a Parent property that contains the parent ViewModel, then you can use it to show the dialog.
OK . Understood. Thank you.
Is it Possible to use
OpenDialogHostAsync
from anyViewModel
passed as parent? For me it doesn't work with exceptionNo view found with specified ownerViewModel of type ....
but works well if i call dialog service fromMainWindowViewModel
Thanks.