简体   繁体   English

c# WPF 更改消息框中特定文本的颜色

[英]c# WPF change color of specific text in messagebox

Hello guys as the title says.大家好,正如标题所说。 How can I change the color of specific text in the messagebox .如何更改messagebox特定文本的颜色。 Specifically I'm using MessageBoxResult .具体来说,我正在使用MessageBoxResult Im using C# WPF .我使用C# WPF I attached an image for more detailed info.我附上了一张图片以获取更详细的信息。 thank you谢谢你

附件

This is not possible with MessageBox class, you have to design a custom dialog to achieve what you are looking for.这对于 MessageBox 类是不可能的,您必须设计一个自定义对话框来实现您正在寻找的内容。 Message box is merely a prefabricated modal dialog box that displays a text message to a user.消息框只是一个预制的模态对话框,用于向用户显示文本消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM