vs2008创建silverlight工程的问题
安装的专业版VS2008 并且安装了silverlight_chainer.exe 应该是silverlight2.0beta1 for VS2008
然后创建silverlight工程以后 app.xaml和page.xaml都不能往上拖控件 用www.microsoft.com/expression里刚下载的试用版Blend2打开 却报错 说usercontrol is not supported in a WPF project还有Grid is not supported in a WPF project
下面是VS08创建silverlight工程是自动生成的page.xaml文件的内容
[code=XAML]<UserControl x:Class="SilverlightApplication1.Page"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
</Grid>
</UserControl>[/code]
这是APP.xmal的内容
[code=XAML]<Application xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SilverlightApplication1.App"
>
<Application.Resources>
</Application.Resources>
</Application>[/code]