微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

SilverLight 4.0.41108.0 Beta 的bug

如下Xaml文件, 在 Silverlight 4 中会报错。

@H_502_6@<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SilverlightStudy.MainPage" Width="640" Height="480"> <TextBlock> <Hyperlink NavigateUri="http://www.msn.com" >MSN Home Hyperlink> TextBlock> UserControl>

错误信息:

Hyperlink 不支持nothing 作为内容。 [Line: 7 Position: 66]

在 Microsoft Expression Blend Preview for .NET 4 中,我们会看到错误信息:

image

参考资料:

Hyperlink should be able to be inserted in a textblock
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=511958

Bugs fixed (or not) in Silverlight 4 Beta
http://www.olsonsoft.com/blogs/stefanolson/post/Bugs-fixed-(or-not)-in-Silverlight-4-Beta.aspx

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐