可以在Asp中像Listview一样在wpf中使用Listview吗? [英] Is it possible to use Listview in wpf like Listview in Asp?

查看:65
本文介绍了可以在Asp中像Listview一样在wpf中使用Listview吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在WPF中使用listview,如ASP.Net中的Listview。在ASP.Net中,listview具有InsertItemTemplate,EditItemTemplate,EmptyTemplate。是否在WPF中的Listview中有任何函数,如InsertItemTemplate,EditItemTemplate,EmptyTemplate。



提前谢谢...

I need to use a listview in WPF like Listview in ASP.Net. In ASP.Net the listview has InsertItemTemplate, EditItemTemplate, EmptyTemplate. Is it there any functions like InsertItemTemplate, EditItemTemplate, EmptyTemplate in Listview in WPF.

Thanks in advance...

推荐答案

Kochathu Thomas Tinu写道:
Kochathu Thomas Tinu wrote:

是否有任何函数,如 InsertItemTemplate EditItemTemplate ,在WPF的Listview中 EmptyTemplate

Is it there any functions like InsertItemTemplate, EditItemTemplate, EmptyTemplate in Listview in WPF.





严格说:



请参阅文档: ListView类 [ ^ ]为 Richard MacCutchan [ ^ ]曾提到。



欲了解更多信息,请点击以下链接:

ListView样式和模板 [ ^ ]

ListViewItem ControlTemplate示例 [< a href =https://msdn.microsoft.com/en-us/library/vstudio/ms788717%28v=vs.90%29.aspxtarget =_ blanktitle =New Window> ^ ]



注意:我不知道为什么 InsertItemTemplate EditItemTemplate EmptyTemplate 属性/方法对您来说非常重要。不过,请注意,两个ListView都来自不同的框架,因此它们可以包含不同的方法/属性等,即使它们的名称相同。



Strictly saying: NO.

See the documentation: ListView Class[^] as Richard MacCutchan[^] had mentioned.

For further information follow these links:
ListView Styles and Templates[^]
ListViewItem ControlTemplate Example[^]

Note: i have no idea why InsertItemTemplate, EditItemTemplate, EmptyTemplate properties/methods are so important to you. Nevertheless, note that both ListViews come from different frameworks, so they can contain different methods/properties, etc, even their names are equal.


这篇关于可以在Asp中像Listview一样在wpf中使用Listview吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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