ListView视图类型的其他选项在哪里 [英] Where are the other options for ListView View types

查看:56
本文介绍了ListView视图类型的其他选项在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正忙着使用NavigationView控件来处理NavigationWindow类型的应用程序(类似于控制面板在Windows中的作用)。



基本上我使用的是对象的DataTemplate建模,并使用MyNavigationWindow.Navigate(MyModel)从对象的DataTemplate自动加载视图。虽然我可以使用GridView选项,但似乎我似乎无法(对于我的生活)获取可从我的XAML或代码内部(或任何其他视图类型)访问的LargeIconView类型。



请注意我使用的是System.Windows.Controls.ListView和不是 System.Windows.Forms.ListView。



任何人都可以帮助解决我所缺少的问题,不管它是什么 - 不是什么?



提前致谢,

me:D

解决方案

我从未试图找到这样的视图类型,但我看不出它是否在WPF中可用。看: http://msdn.microsoft。 com / en-us / library / system.windows.controls.viewbase%28v = vs.110%29.aspx [ ^ ]。



看起来目前没有这样的事情。这告诉我你可能需要根据 System.Windows.Controls.ViewBase 开发自己的视图。你可以在这里找到关于做这些事情的简短教程: http:// msdn.microsoft.com/en-us/library/ms748859%28v=vs.110%29.aspx [ ^ ]。



- SA

Hi,

I am busy fighting with the ListView control for a NavigationWindow type application (something similar to what the control panel does in windows).

Basically I am using DataTemplate modelling of an object and using MyNavigationWindow.Navigate(MyModel) with view loading automatically from the object's DataTemplate. While I can get to the GridView option going okay, it seems like I cannot seem to (for the life of me) get the LargeIconView type accessible from either my XAML or from within code (or any of the other view types for that matter).

Please note that I am using System.Windows.Controls.ListView and not System.Windows.Forms.ListView.

Can anyone help as to what I am missing be it assembly wise ot what-not?

Thanks in advance,
me :D

解决方案

I never tried to find such a view type, but I cannot see if it is available in WPF. Look: http://msdn.microsoft.com/en-us/library/system.windows.controls.viewbase%28v=vs.110%29.aspx[^].

It looks like there is no such thing at the moment. That tells me that you might need to develop your own view based on System.Windows.Controls.ViewBase. You can find a short tutorial on doing such things here: http://msdn.microsoft.com/en-us/library/ms748859%28v=vs.110%29.aspx[^].

—SA


这篇关于ListView视图类型的其他选项在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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