-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I have a somewhat working solution now. I'm injecting the Prism EventAggregator in the codebehind with a custom event containing all Snackbar information I need. Still open for suggestions, but I think this'll do for now. |
Beta Was this translation helpful? Give feedback.
-
From what I understand, MVVM is intended to sepparate UI from logic, so that that logic can be tested. Snackbar (same as Alert) is a UI, so it's call should be located in the page. View Model can send some event to the page that would trigger the Snackbar, or something. Anyway, you can use |
Beta Was this translation helpful? Give feedback.
I have a somewhat working solution now. I'm injecting the Prism EventAggregator in the codebehind with a custom event containing all Snackbar information I need. Still open for suggestions, but I think this'll do for now.