Sorry, but this is no good, because it is a hack....oh, and where the heck does GalaSoft.MvvmLight.Command come from?
The ability to set which buttons appear on a moderndialog must be available within the Modern UI framework, without using external coding.
I would have thought this would be a simple exercise given the amount of effort that has already gone into producing this framework.
An example snippet in a code behind would be something like:-
ModernDialog MyDiag = new ModernDialog();
MyDiag.Title = "Customer Search";
MyDiag.Content = new CustomerSearchDialog();
MyDiag.Buttons = Buttons.YesNoCancel; -or- whatever combinations that are possible, YesCancel, NoCancel, OkCancel, Cancel, No, Yes, etc, etc....
Currently, all we get is the Close button.
Is this that hard to incorporate within the framework?
Thank you for listening.