This example demonstrates how to work with the currently opened dialog directly from its view model. The CurrentDialogService component is a handful tool in this case, which allows to close the dialog with one of the available results from within a command inside the view model.
Support Center