I would like to open a dialog in my application and I would like to close the view when a property in the view model is changed.
So I am thinking in ths way:
1.- In my view.axml.cs (code behind) I have a method named close()
that executes the close method of the view.
2.- In my view model I have a property called ViewModelClosing
, a bool
.
3.- The view, in some way, I don't know really how, needs to bind the property of the view model and execute the method in the code behind when the property changed.
Is it possible to do that?