This question is locked. New answers and comments are not allowed.
Hello,
I have the following RadLIstPicker in a page of my application:
When I run the application, I get the following message:
But when I change the InlineModeThreshold property and enter a value larger that the items of my list box, everything seems working fine.
Is this any kind of a component bug or I do something wrong?
Thank you very much.
Efthymios Kalyviotis
I have the following RadLIstPicker in a page of my application:
<telerikInput:RadListPicker x:Name="GPSAccuracyListPicker" Margin="0,15,0,0" VerticalAlignment="Stretch" Header="GPS Accuraccy:" IsExpanded="False"> <ListBoxItem x:Name="VeryLowListBoxItem" Content="Very Low"/> <ListBoxItem x:Name="LowListBoxItem" Content="Low"/> <ListBoxItem x:Name="MediumListBoxItem" Content="Medium"/> <ListBoxItem x:Name="HighListBoxItem" Content="High"/> <ListBoxItem x:Name="VeryHighListBoxItem" Content="Very High"/> <ListBoxItem x:Name="ExtremeListBoxItem" Content="Extreme"/></telerikInput:RadListPicker>When I run the application, I get the following message:
System.InvalidOperationException was unhandled Message=Element is already the child of another element. StackTrace: at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh) 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) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at System.Windows.Controls.ContentControl.set_Content(Object value) at Telerik.Windows.Controls.RadListPicker.SetSingleSelectionModeSummary(Object content) at Telerik.Windows.Controls.RadListPicker.SyncPopupLabelContent() at Telerik.Windows.Controls.RadListPicker.UpdateExpandCollapseMode() at Telerik.Windows.Controls.RadListPicker.UpdateInitialState() at Telerik.Windows.Controls.RadListPicker.OnApplyTemplate() at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget) at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight) at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight) at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight) at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight) at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(Size availableSize) at Microsoft.Phone.Controls.PivotItem.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)But when I change the InlineModeThreshold property and enter a value larger that the items of my list box, everything seems working fine.
Is this any kind of a component bug or I do something wrong?
Thank you very much.
Efthymios Kalyviotis
