Question

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?

Was it helpful?

Solution

You need to install Expression Blend 2.0 SP1.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top