如何在 Kendo 面板栏中拆分文本?
How to split text in a Kendo PanelBar?
panelbar.Add()
.Text(string.Format(Common_Formats.CopyRight, DateTime.Now.ToString("yyyy"), Version.ToString())).
Common_Formats.CopyRight
是从.resx
文件中读取的字符串:
© {0} ABC Systems Inc. <br> All rights reserved. V: {1}
我把"<br>"
和\n
放在正文里了,还是分不开
看到这个关闭编码,本质上是调用
.Encoded(false);
Kendo UI - Turning Text() enclosed text into <span> encoded HTML
panelbar.Add()
.Text(string.Format(Common_Formats.CopyRight, DateTime.Now.ToString("yyyy"), Version.ToString())).
Common_Formats.CopyRight
是从.resx
文件中读取的字符串:
© {0} ABC Systems Inc. <br> All rights reserved. V: {1}
我把"<br>"
和\n
放在正文里了,还是分不开
看到这个关闭编码,本质上是调用
.Encoded(false);
Kendo UI - Turning Text() enclosed text into <span> encoded HTML