views:

157

answers:

0

I am just a beginner in Silverlight, here is the XAML code. I have added reference to System.Windows.Controls, still it is saying that "Can not resolve symbol WrapPanel".

<UserControl x:Class="HelloWorld.MainPage" xmlns:controls ="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="50" /> </Grid.RowDefinitions> <controls:WrapPanel></controls:WrapPanel> <Button x:Name="addItem" Click="addItem_Click" Content="Add New Item" Grid.Row="1" /> </Grid> </UserControl>

Can anybody tell me where I am doing wrong? Thanks