Where is the Silverlight Calendar Control located?

Just play with the released Silverlight 2.0. I am trying to put a simple calendar in a control. However, the project does not seem to know what I'm talking about: -

<UserControl x:Class="MyFirstSL2.Test"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
>
  <Grid Background="#FF5C7590">
    <Calendar />
  </Grid>
</UserControl>

Visual Studio 2008 simply places a blue line under the calendar, indicating that the type Calendar is not found. Do I need to add an assembly? Which one of? Do I need to add another namespace in Xaml?

+5
source share
4 answers

- SDK System.Windows.Controls. % .%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client xaml ( ):

xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

:

<basics:Calendar />

, !

+15

C:\Program Files\Microsoft SDK\Silverlight\v2.0\Libraries\Client

system.windows.controls.dll

Blend VS2008 SP1,

+1

, Silverlight , ASP.Net . , WPF .

0

Instead of trying to figure out how the toolkit allows the built-in calendar control, I created a custom control here http://slcalendarcontrol.codeplex.com/ to check it out.

0
source

All Articles