Wpf '的子女;System.Windows.Controls.UIElementCollection';不能为空。应为从UIElement派生的对象
我遇到了这个例外,不知道该怎么办。 我正在使用我在网上找到的Wpf '的子女;System.Windows.Controls.UIElementCollection';不能为空。应为从UIElement派生的对象,wpf,exception,uielement,Wpf,Exception,Uielement,我遇到了这个例外,不知道该怎么办。 我正在使用我在网上找到的TreeListView: <tv:TreeListView x:Name="listView" ItemsSource="{Binding TreeRoot}" Margin="5" Width="640" Height="732"> </tv:TreeListView> 有人出现过此异常吗?我怀疑您的DataContext中的TreeRoot集合包含空项
TreeListView
:
<tv:TreeListView x:Name="listView" ItemsSource="{Binding TreeRoot}" Margin="5" Width="640" Height="732">
</tv:TreeListView>
有人出现过此异常吗?我怀疑您的
DataContext
中的TreeRoot
集合包含空项