A DateTimePicker used in a WPF UserControl XAML file.
<xctk:DateTimePicker Name="start" AutoCloseCalendar="True" BorderThickness="0" Background="Transparent" BorderBrush="#FFD6D6D6"
Value="{Binding Path=StartTime,
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:RestrictionPanel}, Mode=TwoWay}"
TimeFormat="Custom" TimeFormatString="HH:mm"
Format="Custom" FormatString="yyyy-MM-dd HH:mm"
FontSize="22" ShowButtonSpinner="False" ShowDropDownButton="False"
TextAlignment="Center"
Maximum="{Binding ElementName=end, Path=Value, TargetNullValue={x:Static sys:DateTime.MaxValue}}"
IsEnabled="{Binding ElementName=chk_start, Path=IsChecked}"/>
The error is:
'AllowSpin' property was already registered by 'Xceed_Wpf_Toolkit_Primitives_UpDownBase`1_0_197800013'.
If I replace the above code by just <xctk:DateTimePicker />, the error still exist. How can I solve it?


