2010-10-04 69 views
1

我试图使用VisualTreeHelper类获取列表框项目。当我做VisualTreeHelper.GetChildrenCount((DependencyProperty)listBox1)它返回计数为0.但列表框中有很多listboxitems在里面。有人让我知道,如果我犯了什么错误?获取列表框项目Silverlight

问候, Lalith

回答