silverlight - 关于 Expression Blend 2 中的 WPF 不支持 UserControl 的错误

标签 silverlight expression-blend

我已经在 Visual Studio 中创建了一个测试 Silverlight 2 应用程序,只是 copying the Tim Heuer video ,但是当我在 Blend 中打开它时,出现此错误

UserControl is not supported in a Windows Presentation Foundation (WPF) project

这是XAML代码

<UserControl x:Class="MyFirstApp.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Orientation="Vertical">
            <TextBox x:Name="myTextBox" FontSize="60" />
            <Button Content="Click Me" FontSize="60" Click="Button_Click" />
        </StackPanel>
    </Grid>
</UserControl>

我是否缺少引用资料或其他内容?

最佳答案

您需要安装Expression Blend 2.0 SP1 .

关于silverlight - 关于 Expression Blend 2 中的 WPF 不支持 UserControl 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/818526/

相关文章:

c# - Silverlight C# 是否有将集合转换为文件以及相反的标准方法?

wpf - 现实世界的 3D 应用

silverlight - 如何在 Expression Blend 4 中进行导航?

wpf - 在代码中而不是 XAML 中设置 DataContext 有什么好处?

wpf - 是否可以在 Expression Blend 3 中查看设计中数据触发器的效果?

c# - 获取 DataTemplate 中的元素

silverlight - 高密度Silverlight图表控件

Blend 2 sp1 中的 WPF 视觉状态管理器

silverlight - 如何在 Silverlight 3 中将 Canvas 用作 ItemsControl 的 ItemsPanel

c# - 使用较多的 WPF(可选,包括 Silverlight).NET 论坛/讨论站点有哪些?