Hi
I am in need of some custom labels in my dialog ( Pass,Fail,Cancel)
And I know I can achieve that with the following
var result = await _dialogManager.ShowDialogAsync(mod, new[] {"Pass", "Fail", "Cancel"});
|
where mod is my custom view model.
What I can't work out how to do is to be able to enable/disable the buttons within the view model.
Is this the best way to do this or is there another way?
When I tried using custom commands
var commands = new List<IDialogUICommand<DialogResult>>(); _passCommand = new DialogUICommand<DialogResult>("Pass", DialogResult.Ok, true, false); commands.Add(_passCommand); _failCommand = new DialogUICommand<DialogResult>("Fail", DialogResult.No, false, false); commands.Add(_failCommand); var closeCommand = new DialogUICommand<DialogResult>("Cancel", DialogResult.Cancel, false, true); commands.Add(closeCommand); var result = await _dialogManager.ShowDialogAsync(mod, commands);
|
the labels did not show correctly on the buttons. Is this the better way, and if so what have I done wrong with the labels
thanks
Murray