Silverlight 字段集控制
我一直缺少 Silverlight 中 HTML 的经典 Fieldset,并且在网络上找不到任何解决方案。我该如何构建一个?
I've been missing the classic Fieldset of HTML in Silverlight and I couldn't find any solutions on the web. How do I go about building one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我会建造一个。
这可能不是解决问题的最佳方法,但它有效,我只是想分享它,因为感觉其他人可能正在寻找同样的东西。
不过,解决方案很简单,您可以设置图例的字体大小、前景和标题。
标记:
控件样式:
和类:
对于 VB.NET 代码,我深表歉意。
正如我所说,可能有很多更好的解决方案,但这里是。
I figured I'll build one.
It's probably not the best way to solve it but it works and I just thought I'd share it because it feels like others might be looking for the same thing.
Simple solution though, you can set FontSize, Foreground and title of the legend.
Markup:
Control Style:
And class:
I apologize for the VB.NET code.
As I said, probably lots of better solutions but here goes.
我知道有两个选项:
使用免费的第三方 Fieldset 控件:
http://www.vectorlight.net/silverlight/controls/fieldset.aspx
http://www.vectorlight.net/silverlight/controls/fieldset/reference.aspx
考虑使用 DataForm 以及附加的特定于表单的功能:
http://www.silverlightshow.net /items/Creating-Rich-Data-Forms-in-Silverlight-3-Introduction.aspx
I am aware of two options:
Use a free third-party Fieldset control:
http://www.vectorlight.net/silverlight/controls/fieldset.aspx
http://www.vectorlight.net/silverlight/controls/fieldset/reference.aspx
Consider using a DataForm, with additional form-specific functionality:
http://www.silverlightshow.net/items/Creating-Rich-Data-Forms-in-Silverlight-3-Introduction.aspx