silverlight   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Silverlight ComboBox Bug - Value does not fall within the expected range大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

Silverlight 2 Combobox 有一个bug, 今天被我遇到了,下面是IE错误信息:   Error: Unhandled Error in Silverlight 2 Application Code: 4004     Category: ManagedRuntimeError        message: System.Argumentexception: Value doe
@H_301_6@Silverlight 2 ComboBox一个bug,今天被我遇到了,下面是IE错误信息:

@H_301_6@ 

@H_301_6@Error: Unhandled Error in Silverlight 2 Application
Code: 4004    
Category: ManagedRuntimeError       
message: System.Argumentexception: Value does not fall within the expected range.
   at Ms.Internal.XcpImports.MethodEx(IntPtr ptr,String name,CValue[] cvData)
   at Ms.Internal.XcpImports.MethodPack(IntPtr objectPtr,String methodName,Object[] rawData)
   at Ms.Internal.XcpImportS.UIElement_TransformToVisual(UIElement element,UIElement visual)
   at System.WindowS.UIElement.TransformToVisual(UIElement visual)
   at System.Windows.Controls.Primitives.SELEctor.IsOnCurrentPage(Int32 index,Rect& itemsHostRect,Rect& listBoxItemRect)
   at System.Windows.Controls.Primitives.SELEctor.ScrollIntoView(Int32 indeX)
   at System.Windows.Controls.Primitives.SELEctor.SetFocusedItem(Int32 index,Boolean scrollIntoView)
   at System.Windows.Controls.ComboBox.PrepareContainerForItemOverride(DependencyObject element,Object item)
   at System.Windows.Controls.ItemsControl.updateContainerForItem(Int32 indeX)
   at System.Windows.Controls.ItemsControl.RecreateVisualChildren()
   at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr unmanagedObj)   

@H_301_6@ 

@H_301_6@有人找到了一个应对办法:http://compiledexperience.com/Blog/post/Gotcha-when-databinding-a-ComboBox-in-Silverlight.aspx

@H_301_6@ 

@H_301_6@试过后可以解决我的问题

大佬总结

以上是大佬教程为你收集整理的Silverlight ComboBox Bug - Value does not fall within the expected range全部内容,希望文章能够帮你解决Silverlight ComboBox Bug - Value does not fall within the expected range所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。