WPF文本换行

① XAML中为 [
]

eg. <Button Content="字段1&#13;字段2" />

② C#代码中为

\r\n  

或者
Environment.NewLine         
eg . button1.content=string1+
Environment.NewLine+ string2;
posted @ 2015-11-24 10:06  人生为卒  阅读(2514)  评论(0编辑  收藏  举报