在我的silverlight应用程序中我发现这个错误,当我试图将itemssource分配给列表框.Error HRESULT E_FAIL has在System.Windows从呼叫被退回到COM组件在我的Silverlight应用程序中,我发现这个错误.Error HRESULT E_FAIL已经从调用COM组件返回
在MS.Internal.XcpImports.CheckHResult(UInt32的小时) 在MS.Internal.XcpImports.SetValue(IManagedPeerBase OBJ,的DependencyProperty属性,布尔b) .DependencyObject.SetValue(的DependencyProperty属性,布尔b) 在System.Windows.Controls.ItemsControl.ClearContainers(布尔bHostIsReplaced) 在System.Wi ndows.Controls.ItemsControl.ItemsSourceChanged(DependencyObject的d,DependencyPropertyChangedEventArgs E) 在System.Windows.DependencyObject.RaisePropertyChangeNotifications(的DependencyProperty DP,对象的属性oldValue,对象newValue)以在System.Windows.DependencyObject.UpdateEffectiveValue(的DependencyProperty属性,EffectiveValueEntry oldEntry,EffectiveValueEntry & newEntry,ValueOperation操作) 在System.Windows.DependencyObject.SetValueInternal(的DependencyProperty DP,对象的值,布尔allowReadOnlySet,布尔isBindingInStyleSetter) 在System.Windows.Controls.ItemsControl.set_ItemsSource(IEnumerable的值) 在HRPMS.MyDesk.ConferenceRoomBooking .AddSourceToListBox() at HRPMS.MyDesk.ConferenceRoomBooking.chkbxCCConsultant_Unchecked(Object sender,RoutedEventA RGS E) 在System.Windows.Controls.Primitives.ToggleButton.OnUnchecked(RoutedEventArgs E) 在System.Windows.Controls.Primitives.ToggleButton.OnIsCheckedPropertyChanged(的DependencyObject d,DependencyPropertyChangedEventArgs E) 在System.Windows.DependencyObject.RaisePropertyChangeNotifications(的DependencyProperty DP,对象的属性oldValue,在System.Windows在System.Windows.DependencyObject.RefreshExpression(的DependencyProperty DP) 在System.Windows.DependencyObject.UpdateEffectiveValue(的DependencyProperty属性,EffectiveValueEntry oldEntry,EffectiveValueEntry & newEntry,ValueOperation操作) 对象newValue)以 .Data.BindingExpression.SendDataToTarget() at System.Windows.Data.BindingExpression.SourcePropertyChanged(PropertyPathListener se的nDer,PropertyPathChangedEventArgs参数) 在System.Windows.PropertyPathListener.ReconnectPath() 在System.Windows.Data.Debugging.BindingBreakPoint。 <> c__DisplayClass4.b__3()