在我的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()