Silverlight XAML controls Toolkit

Posted by Lokeshbasana under Regular Expressions on 3/16/2009 | Views : 2018 | Status : [Member] | Replies : 1
I create Asp.net Website and I add Silverlight JScript Page(scene.xaml)
scene.xaml not supporting Silverlight xaml controls.

Again I created Silverlight Application(Website --> Add New Item -->Silverlight Application) in Same Project

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

Why it is not supporting in scene.xaml file
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
</Canvas>

But Page.xaml
<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

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

I attenched word document with screenshots.




Responses

Posted by: Vuyiswamb on: 8/31/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Lokeshbasana

Silverlight is a new Technology ,and there are still many questions to it. That is why not everyone is using Silverlight. But a lot of Challenges has been solved in Silverlight 3. If you have already started using Silverlight 3 please tell us if you still have the problem.

Thank you for posting at dotnetfunda


Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Lokeshbasana, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response