Just playing around with the now released Silverlight 2.0. I’m trying to put a simple Calendar in a control. However the project doesn’t 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 just puts blue line under the Calendar saying the type Calendar not found. Do I need to add an assembly? Which one? Do I need to add another namespace to the Xaml?
The calendar control is an SDK control in the assembly System.Windows.Controls namespace — look at %program files%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client add a namespace to your xaml (after you add a reference):
Then to use:
Hope this helps!