You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app where I display a ViewModel based, modal dialog that enables a user to edit a record --which represents a request-- before dismissing back to the main SukiWindow. If the user has failed to submit their request when closing the window, I want another dialog to pop up warning them "You haven't submitted your request, are you sure you want to close" with 2 action buttons. If they select "No", I'd like for this modal to close back to the first dialog so they can continue their editing. I have defined this view in a UserControl
I can't seem to figure out how to do this. I have:
ShellViewModel/ShellView
ShellView has <suki:SukiDialogHost Manager="{Binding DialogManager}"/> defined.
I have SukiDialogManager configured as a singleton.
I have a vm called "RequestViewModel" which launches from the Shell as a VM-based suki dialog.
All of that works fine. However, my first thought was to register SukiDialogManager on a per-request basis and request a separate dialog manager for RequestView. When I do this, this breaks the RequestViewModel dialog which doesn't appear. Also, it doesn't appear as if a UserControl can handle the DialogManager
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an app where I display a ViewModel based, modal dialog that enables a user to edit a record --which represents a request-- before dismissing back to the main SukiWindow. If the user has failed to submit their request when closing the window, I want another dialog to pop up warning them "You haven't submitted your request, are you sure you want to close" with 2 action buttons. If they select "No", I'd like for this modal to close back to the first dialog so they can continue their editing. I have defined this view in a UserControl
I can't seem to figure out how to do this. I have:
ShellViewModel/ShellView
ShellView has <suki:SukiDialogHost Manager="{Binding DialogManager}"/> defined.
I have SukiDialogManager configured as a singleton.
I have a vm called "RequestViewModel" which launches from the Shell as a VM-based suki dialog.
All of that works fine. However, my first thought was to register SukiDialogManager on a per-request basis and request a separate dialog manager for RequestView. When I do this, this breaks the RequestViewModel dialog which doesn't appear. Also, it doesn't appear as if a UserControl can handle the DialogManager
Is there a way to do this ?
Any suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions