Hi There,
I am receiving a the following error in the VS 2010 designer as well as at runtime when I attempt to set the
Content property on a
RadComboBoxItem that has been declaratively added to a
RadComboBox in XAML:
ArgumentException was thrown on "RadComboBoxItem": Value does not fall within the expected range.
at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s) at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj) at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) at System.Windows.Controls.ContentControl.set_Content(Object value)
I created a simple application to demonstrate. The project contains a single Page named "MainPage". The project consists of a single file called MainPage.xaml (see example below) that contains a RadComboBox with a single RadComboBoxItem contained in it as follows:
I am using VS 2010 SP1. I have both the Silverlight 4 Tools and Silverlight 5 RC Tools installed on a Windows 7 (64-bit) machine. The project is set to use Silverlight 4. I am using the latest internal build of the Telerik RadControls for Silverlight 2011 Q2 components (version 2011.2.823.1040).
Any help in understanding this problem would be greatly appreciated.
Thanks,
Richard