用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
jameszhou的公告
<a href="http://www3.clustrmaps.com/counter/maps.php?url=http://blog.csdn.net/jameszhou" id="clustrMapsLink"><img src="http://www3.clustrmaps.com/counter/index2.php?url=http://blog.csdn.net/jameszhou" style="border:0px;" alt="Locations of visitors to this page" title="Locations of visitors to this page" id="clustrMapsImg" onError="this.onError=null; this.src='http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://www2.clustrmaps.com'" /> </a> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2352414-1"; urchinTracker(); </script> <br/> <br/> <script type="text/javascript"><!-- google_ad_client = "pub-0325102277263406"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text"; //2007-09-07: csdnblog google_ad_channel = "0441812933"; google_color_border = "FFFFFF"; google_color_bg = "B3B3B3"; google_color_link = "000033"; google_color_text = "000000"; google_color_url = "FFFFFF"; google_ui_features = "rc:10"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
文章分类
链接
Colleague & Microsoft Team System MVP: Wilson Wu(RSS)
Old Blog - Runner on .NET
存档

原创  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 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)   

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

试过后可以解决我的问题

发表于 @ 2009年07月03日 17:38:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:在Telerik RadTabControl中的Tab Header添加关闭按钮 | 新一篇:项目管理 - 客户参与

  • 发表评论
  • 评论内容:
  •  
Copyright © jameszhou
Powered by CSDN Blog