Quantcast
Channel: MVVM Light Toolkit
Viewing all articles
Browse latest Browse all 1826

New Post: DialogService in WPF apps?

$
0
0
Sending parameters to custom dialogs can be made hugely easier if we have just one more parameter in IDialogService.ShowMessage() call. Instead of:
Task<bool> ShowMessage(string message, string title, string buttonConfirmText, string buttonCancelText, Action<bool> afterHideCallback);
make it:
Task<bool> ShowMessage(string message, string title, string buttonConfirmText, string buttonCancelText, Action<bool> afterHideCallback, object data = null);
Or can you suggest another way of sending an object from ViewModel layer to my custom dialog in View layer?

Viewing all articles
Browse latest Browse all 1826

Trending Articles