I would like to implement a message box in my wpf project. Text: "Select language:" Alternatives are English (OK) and German (Cancel).
In this context, I am trying to customize buttons in a MessageBox. To do this, I am trying to implement the advanced WPF toolkit, but I have problems understanding the documentation for the advanced WPF toolkit.
My code looks like this:
"Xceed.Wpf.Toolkit.MessageBox msgBox = new Xceed.Wpf.Toolkit.MessageBox(); msgBox.OkButtonContent = "English"; msgBox.CancelButtonContent = "German"; MessageBoxResult result =msgBox.ShowMessageBox("Choose Language: ", "Language",MessageBoxButton.OKCancel);"
Questions:
1) Are there any other suitable controls used where the user of the wpf application can choose between alternatives?
2) Where can I find a good example / documentation for customizing button shortcuts in a message box?
source share