首页 新闻 会员 周边

Scott's Tutorial Silverlight 2 正式版

0
悬赏园豆:10 [已关闭问题] 关闭于 2008-10-22 21:27

今天安装了Silverlight 2 正式版 ,运行了几个程序,还好。

可把Scott's Tutorial  那个get started 示例(他也更新到了2版)的源码下载下来,

没有任何改动,运行,输入“basketball”,点button却没任何反应。

查看page.xaml,预览看不到东西,下面报错 说 <Digg:StoryDetailsView x:Name="DetailsView" Grid.RowSpan="2" Visibility="Collapsed" />
   
Error 1 元素 StoryDetailsView 的未知属性 Name。

好奇怪啊,怎么回事?

可以从这里吓到他的代码:http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-6-using-user-controls-to-implement-master-detail-scenarios.aspx 

狮兄的主页 狮兄 | 菜鸟二级 | 园豆:265
提问于:2008-10-20 22:34
< >
分享
所有回答(1)
0

scott的评论区不是有解决方案吗?你看文章要完整噢?

原文:

You have to add the Namespace definition xmlns:Digg="clr-namespace:DiggSample"

to the UserControl of the Page.xaml

中文:

你必须添加[xmlns:Digg="clr-namespace:DiggSample"]的命名空间定义到Page.Xaml的用户控件之上。

[好像Download Code未提供完整,反正我是没有细看]

RicoRui | 园豆:3663 (老鸟四级) | 2008-10-21 09:06
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册