Silverlight中没有Label控件吗?

Silverlight中没有Label控件吗?,第1张

概述我似乎无法在Silverlight中找到Label控件.如果我把XAML放在任何地方,我会收到编译错误. TextBlock与WinForms中的Label大致相同. 按照MSDN: The TextBlock control is the primary element for displaying text in Silverlight based applications. Provides 我似乎无法在Silverlight中找到Label控件.如果我把XAML放在任何地方,我会收到编译错误.解决方法 TextBlock与WinForms中的Label大致相同.

按照MSDN:

The TextBlock control is the primary
element for displaying text in
Silverlight based applications.

ProvIDes a lightweight control for
displaying small amounts of text…

编辑:我刚刚注意到Silverlight 3的标签.标签应该内置在Silverlight 3中,所以你确定你不使用2吗?

您可能需要考虑TextBlock,具体取决于您使用它的方式.再次按照MSDN:

A Label control displays a caption,required fIEld indicator,and valIDation error indicator to the user. It is typically used together with an input control,such as a TextBox. If you do not need to display required fIEld or valIDation indicators,you can use the TextBlock control instead.

总结

以上是内存溢出为你收集整理的Silverlight中没有Label控件吗?全部内容,希望文章能够帮你解决Silverlight中没有Label控件吗?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1002756.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-22
下一篇2022-05-22

发表评论

登录后才能评论

评论列表(0条)

    保存