views:

1246

answers:

5

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?

+3  A: 

You need to install Expression Blend 2.0 SP1.

markti
A: 

i have almost the same problem, but it doesent recognize any element :-) it says grid not supported image not supported :-) nothing is supported :-)

paranic
For a follow-up question like this it would be better to ask it as a new question, not post it here as an answer. More people would see it and try to solve the problem. The "Ask Question" button is in the top right of the page...
sth
A: 

Thanks for the solution. Even I was facing the same issue. Installing Expression Blend 2.0 SP1 fixed my problem.

jack