I've looked around and it appears that everything can be editable in a MessageBox, bar the text on the buttons ( WPF /C#)
MessageBox.Show("Generic Message", "Caption",
MessageBoxButton.YesNoCancel, MessageBoxImage.Warning)
Is there a way to change the "Yes", "No", "Cancel" text or do I need to write a window to function as a MessageBox
to accomplish this? (There isn't any problem doing that; I am just wondering if there is a way in WPF).
You can use whatever buttons are offered by the MessageBoxButton enum. If you want something different, you have to write a custom dialog.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.