Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silverlight XAML Control Toolkit RSS

1 reply

Last post Mar 17, 2009 04:00 AM by fullsailrick

(0)
  • lokeshbasana

    lokeshbasana

    0 Points

    1 Post

    Silverlight XAML Control Toolkit

    Mar 16, 2009 01:28 PM | LINK

    step1:

    I create Asp.net Website (Application Name: SilverlightXAML) and I add Silverlight JScript Page(scene.xaml)
    scene.xaml not supporting Silverlight xaml controls.

    ----------code looks like

    <Canvas xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Ellipse Fill="Gray" Width="200" Height="200"></Ellipse>


    <Button></Button>        //Error not accepting silverlight xaml controls


    </Canvas>

     step2:

    In same application (SilverlightXAML) added Silverlight application Usercontrol

    Website --> Add New Item -->Silverlight Application

    By Default Silverlight Application contain Page.xaml as UserControl.
    Page.xaml supporting All Sivlerlight xaml controls.

    -----------------code looks like


    <UserControl x:Class="control.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">
    <Button></Button> // Working correctly
    </Grid>
    </UserControl>

    why xaml controls are not working canvas panel in Asp.net Website Application but silverlight xaml controls are

    working in Silverlight Application Usercontrol.

    Please send me the reply i tried in different way but the solution is not found

     

    Blend 2 Blend 2.5 DesignView Design View

  • fullsailrick

    fullsailrick

    Contributor

    3699 Points

    829 Posts

    Re: Silverlight XAML Control Toolkit

    Mar 17, 2009 04:00 AM | LINK

    Hi! I think the schema is wrong in the first example, should be:

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"