Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法在ListView中引用ScrollViewer_C#_Wpf_Xaml - Fatal编程技术网

C# 无法在ListView中引用ScrollViewer

C# 无法在ListView中引用ScrollViewer,c#,wpf,xaml,C#,Wpf,Xaml,我有一个令人困惑的问题。我在两个不同的解决方案中有两种相同的项目类型(都是针对.NET4.5的WPF项目)。在其中一个项目中,在窗口的xaml中,我可以创建一个listview,当我开始键入“ScrollView”时,它会显示为Intellisense,我可以引用它: <ListView ScrollViewer.[etc]></ListView> 但是,在我的另一个项目中,ScrollViewer在键入时不会显示为已识别。有什么线索吗 谢谢。您能显示更多代码吗?告

我有一个令人困惑的问题。我在两个不同的解决方案中有两种相同的项目类型(都是针对.NET4.5的WPF项目)。在其中一个项目中,在窗口的xaml中,我可以创建一个listview,当我开始键入“ScrollView”时,它会显示为Intellisense,我可以引用它:

<ListView ScrollViewer.[etc]></ListView>

但是,在我的另一个项目中,ScrollViewer在键入时不会显示为已识别。有什么线索吗


谢谢。

您能显示更多代码吗?告诉我们你想做什么?也许在其中一个项目中,你有listview的自定义控件模板?无论如何,ListView有点过时了。如果可能,请预先输入DataGrid。严重的是,没有代码可显示。即使我开始在一个全新的窗口/视图上创建listview,这种情况也会发生。基本上,它是用于带有图像分幅的双栏列表。我需要访问Scrollviewer的事件。