How to use snackbar with ViewModel? #1223
Unanswered
CristianoDevNet
asked this question in
Q&A
Replies: 1 comment
-
I am not currently using injection in my projects, so here is how you can set up snackbars and dialogs without it: In your Window that you want to display said snackbar or dialog, you want to put these:
Create the services in your ViewModel.
You will set the presenters that you placed in your window XAML from the Window Constructor. The example below:
Example of usage from ViewModel:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone know?
Beta Was this translation helpful? Give feedback.
All reactions