Our application was developed with silverlight 3 now i want to migrate into the silverlight 5 version.
i am getting error in xaml. "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'System.Windows.Controls.Primitives' that could not be found"
Thanks for help in advance.
According to MSDN
The System.Windows.Controls.Primitives CLR namespace is not part of the http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk XAML namespace. To use the types that come from SDK client libraries and the System.Windows.Controls.Primitives CLR namespace, you must map a XAML namespace for them and use a prefix. For more information, see Prefixes and Mappings for Silverlight Libraries or Silverlight XAML Namespaces, and Mapping XAML Namespaces as Prefixes.
<UserControl xmlns:prim="clr-namespace:System.Windows.Controls.Primitives;Assembly=System.Windows.Controls"> //... <prim:CalendarItem /> <prim:DatePickerTextBox /> //... </UserControl>