WPF中UI上和后台代码中的换行符不同。 其中: XAML中为 C#代码中为 \r\n 或者: Environment.NewLine 转载于:https://www.cnblogs.com/eric_ibm/archive/2013/05/09/WPF.html