私たちのアプリケーションは Silverlight 3 で開発されましたが、Silverlight 5 バージョンに移行したいと考えています。
xamlでエラーが発生しています。「未定義の CLR 名前空間。'clr-namespace' URI は、見つからなかった名前空間 'System.Windows.Controls.Primitives' を参照しています」
<Style TargetType="controls:Calendar">
<Setter Property="Background" Value="#FFFFFFFF"/>
<Setter Property="BorderBrush" Value="#FF8E8F8F"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="#FF000000"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="CalendarButtonStyle" Value="{StaticResource System.Windows.Controls.Primitives.CalendarButton}"/>
<Setter Property="CalendarDayButtonStyle" Value="{StaticResource System.Windows.Controls.Primitives.CalendarDayButton}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:Calendar">
<StackPanel x:Name="Root" HorizontalAlignment="Center" VerticalAlignment="Top">
<controlsPrimitives:CalendarItem x:Name="CalendarItem" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Foreground="{TemplateBinding Foreground}" Style="{StaticResource System.Windows.Controls.Primitives.CalendarItem}" IsEnabled="True" />
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>