I have a window with 3 textboxes in a grid -this is my view- and I have Save button to add a new user to my user list with the datas from the textboxes.
I want to use a relay command to do this on my viewmodel class but I am quite confused with how to make the bindings. I hope it’s clear enough. Any ideas, or examples will be helpful.
thanks in advance.
I have a window with 3 textboxes in a grid -this is my view-
Share
You should have a ViewModel something like the following :
And you can use it like following :
To make this work, put following code in your UserControl/Control/Window’s constructor :