I know that we can’t use messageBox in xaml. But..Can we have a custome “Message box user control”…with a view model..which is having following properties : Message, Trigger (to popup), Icon ???
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sure you can do this. just create a window(maybe a viewmodel too if needed) with stuff and properties you want your messagebox look like. then create a ICustomMessageBoxService interface and implementation which you can use in your viewmodels to show your CustomMessageBox.
look here. there is an example for a custom dialog service. you can easily customize it for your messageboxservice.