Silverlight with Expression Blend

Last post 04-09-2008 8:25 AM by ROAMER. 2 replies.

Sort Posts:

  • Silverlight with Expression Blend

    03-28-2008, 7:58 AM
    • Loading...
    • ASPCloud
    • Joined on 05-18-2007, 5:32 AM
    • Posts 111

    Hi All,

    I have created a silverlight project and following the first video tutorial to create a smiley face:

    http://silverlight.net/Learn/videocat.aspx?cat=1

    But when I tried to open the .sln file in Expression Blend it gives me the following error:


    Canvas is not supported in a windows presentation foundation (wpf) project
    Rectangle is not supported in a windows presentation foundation (wpf) project
    Ellipse is not supported in a windows presentation foundation (wpf) project
    ( + many more)


    There are a few differences between my project and the video tutorial which I think might cause this:

    First, in SilverLight new project templates I have:

    Silverlight Applcation
    Silverlight Class Library

    unlike the video tutorial which has:
     
    Silverlight Javascript Application
    Search Online Templates...


    Secondly, I notice the default code in xaml is different:

    I get Page.xaml with the following code:

    <UserControl x:Class="HelloSilverLight.Page"
        xmlns="http://schemas.microsoft.com/client/2007"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="400" Height="300">

    But in the video tutorial, the code is:

    <Canvas xmlns="http://schemas.microsoft.com/client/2007"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    Is this a silverlight versioning problem?

    I am using:

    ExpressionStudio2Beta_en.exe
    silverlight_chainer.exe

    Thanks.

    Filed under:
  • Re: Silverlight with Expression Blend

    03-28-2008, 8:27 AM
    • Loading...
    • Girijesh
    • Joined on 10-27-2005, 12:04 PM
    • India
    • Posts 638

    Great work.

  • Re: Silverlight with Expression Blend

    04-09-2008, 8:25 AM
    • Loading...
    • ROAMER
    • Joined on 06-23-2005, 1:32 PM
    • Santiago
    • Posts 60

     Yes its a version problem the video and the code that you have is written in silverlight 1.0 but i think you have installed silverlight 2.0 on your system. code written in a SL 1.0 is bit change in contrast with the code written in SL 2.0. Try to download the code from silverlight web site written in a SL 2.0

     

    Hope this helps you. 

    ROAMER!

    Please Mark This Post As Answer, If My Reply Helps You!
Page 1 of 1 (3 items)