当我在开放空间中双击任何内部列表视图以外的项目它显示一些随机项目如何选择。如何解决它? [英] When I Double Click In The Open Space Any Where Inside Listview Other Than Item It Display Some Random Item As Selected.How To Solve It?

查看:63
本文介绍了当我在开放空间中双击任何内部列表视图以外的项目它显示一些随机项目如何选择。如何解决它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友





请帮助我。我的问题是



i有2个listview。第一个listview包含一些项目,当我双击与该行相关的项目将显示在其他listview中。但问题是如果我在listview内部的开放空间中选择它也显示一些行记录在其他listview。该怎么办。



如果你知道,请给我答案。

Hi friend


please help me.my isssues is

i have 2 listview .first listview contain some items when i double click the items related to that row will be displayed in other listview.but the problem is if i select in open space inside the listview also it is displaying some rows record in the other listview.what to do.

please give me answer if you know.

推荐答案

你是谈论Master-Details Pattern。第一个 ListBox 是Master,另一个是Details。我写了一篇关于WPF Master-Details Pattern的文章:



如何:使用Master-Detail模式和WPF Hierarchical DataTemplate [ ^ ]
You are talking about Master-Details Pattern.The first ListBox is the Master and the other one is the Details. I've wrote an article about WPF Master-Details Pattern:

How to: Use the Master-Detail Pattern with WPF Hierarchical DataTemplate[^]


这篇关于当我在开放空间中双击任何内部列表视图以外的项目它显示一些随机项目如何选择。如何解决它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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