.NET控件替代TreeView [英] .NET control which substitute for TreeView
问题描述
我正在开发将在PDA(装有Windows 10的平板电脑)中运行的应用程序
I'm devloping a application program which will be run in the PDA(Tablet PC in which windows 10 is installed)
我有一些数据,这些数据是在Desktop程序的情况下在TreeView中表达的,
I have some data which was expressed in the TreeView in case of Desktop program like following
但是TreeView似乎不适用于Tablet PC的用户界面.
However the TreeView seems to be no good for user interface in Tablet PC.
所以我想用其他控件代替TreeView.
So I want to substitute TreeView with other control.
我认为表样式控件可能更好,但数据应显示为分层样式.
I think a table style control may be better but the data should be displayed as a hierarchical style.
我应该使用DataGrid吗?
Should I use DataGrid?
还有其他控制方法吗?
推荐答案
这取决于您如何显示数据,如果您希望显示分层数据,我认为TreeView仍然是最好的选择,我不知道您为什么说TreeView似乎不利于Tablet PC的用户界面. WPF模板允许您覆盖元素的样式,它可以样式化几乎所有内容.
This is depend on how do you display your data, if you want display hierarchical data, I think TreeView still is best option, I don't know why you say the TreeView seems to be no good for user interface in Tablet PC. WPF template allow you override the style of element, it allows styling of just about everything.
Graph Tree Custom Layout Style for WPF TreeView Control
最好的问候,
鲍勃
这篇关于.NET控件替代TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!