I guess the question in the title is clear enough.What happens when i call
ApplicationCommands.Close.Execute(null,null)
from my viewmodel class.
I have a modeldialog which shows a usercontrol.I have a commandbinding to a button in the usercontrol which is executed in the viewmodel.I want to close the dialog after the command is executed.It can be done by using the above command to the end of the executed event.
But i am wondering if this is the right approach.Will this cause any undesired effect ?