解决方案 »
- GridView 取值问题
- 急!在线等~~~3分钟倒计时问题!!!
- 简单的问题
- 关于GridView排序问题
- GridView_RowCommand 得到选择行的主键值
- 第一次使用TREEVIEW动态获取数据,希望有源码,在线.......
- 没分了,还望大家来看看如何实现.关于导出execl多个sheet的问题.
- 帮忙!Repeater绑定数据显示正常,可是要如何在代码文件.cs中获取Repeater绑定中的数据?
- DataGrid和CheckBox合用的问题!!!!!!!!
- 如何屏蔽伪造IP的恶意自动访问
- 上传图片等比例缩放问题
- as 中ExternalInterface找不到<form></form>的问题
<UserControl.Resources>
<telerik:HierarchicalDataTemplate ItemsSource="{Binding Children}" x:Key="myTreeNodeTemplate">
<StackPanel Orientation="Horizontal" >
<CheckBox Content="{Binding Name}"
Click="mCheckBox_Click" Tag="{Binding}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" IsChecked="{Binding IsChecked,Mode=TwoWay}"
></CheckBox>
<!--<TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="2"
Foreground="#284869" FontWeight="Bold" />-->
</StackPanel>
</telerik:HierarchicalDataTemplate>
</UserControl.Resources>tree控件 IsVirtualizing="True" 虚拟化<telerikNavigation:RadTreeView SelectionMode="Extended" IsLineEnabled="True"
IsOptionElementsEnabled="True" ItemsOptionListType="None"
ItemTemplate="{StaticResource myTreeNodeTemplate}"
LoadOnDemand="treeView_LoadOnDemand"
IsVirtualizing="True"
IsLoadOnDemandEnabled="True"
IsRootLinesEnabled="True" Margin="10" IsTriStateMode="True" x:Name="UwayNetWorkTree">
</telerikNavigation:RadTreeView>里面的节点 看自己需要添加吧 一旦节点过多的时候(超过1000感觉就慢了)建议不要用自带的treeitem ,实例化节点耗时会比较多
看第三方的控件,它的虚拟化做了不少工作,在短开发周期上 ,时间太紧了博客园wpf虚拟化