Search code examples
silverlightexpression-blend

Error about UserControl not supported in WPF in Expression Blend 2


I've created a test Silverlight 2 app in Visual Studio, just copying the Tim Heuer video, but when I go to open it in Blend I get this error

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

This is the XAML code

<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>

Am I missing a reference or something?


Solution

  • You need to install Expression Blend 2.0 SP1.