WPF文本换行

it2025-03-31  19

① XAML中为 [
]

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

② C#代码中为

\r\n 或者 Environment.NewLine eg . button1.content=string1+ Environment.NewLine+ string2;

转载于:https://www.cnblogs.com/lhlong/p/4990632.html

最新回复(0)