在WPF树视图的水平? [英] the level of a treeview in WPF?

查看:120
本文介绍了在WPF树视图的水平?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个WinForms应用程序,一个TreeView的水平是由node.level
$ B $给B就恰如在WPF对应的一个?

谢谢!


解决方案

直接回答你的问题是,有在WPF无级属性。



有没有人给WinForms控件和WPF控件之间的一个关系。由于底层架构和使用是两个完全不同的。在WPF中,你会heirarchical数据(LinkedList的一种数据结构网络化的)绑定到TreeView和定义HeirarchicalDataTemplate到Treeview.ItemTemplate财产


In a WinForms application, the level of a treeview is given by node.level
What is the corresponding one in WPF?

Thanks!

解决方案

The direct answer to your question is that there is no level property in WPF.

There is no one to one relationship between the winforms controls and wpf control. Because the underlying architecture and usage is totally different in both. In WPF you will bind a heirarchical data(LinkedList kind of Datastructure) to a TreeView and define a HeirarchicalDataTemplate to the Treeview.ItemTemplate property

这篇关于在WPF树视图的水平?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆