在Grid Application Template中调用了两次ItemGridView_SelectionChanged [英] ItemGridView_SelectionChanged called twice in Grid Application Template

查看:76
本文介绍了在Grid Application Template中调用了两次ItemGridView_SelectionChanged的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试使用网格应用程序模板时,似乎
在网格中选择一个项目后,ItemGridView_SelectionChanged函数被调用两次:一次来自ListView,一次来自GridView。 XAML代码包含两个元素和ListView 一个
处于折叠可见性状态。为什么我得到
SelectionChanged
事件从它?

While experimenting with Grid Application Template it appeared that the ItemGridView_SelectionChanged function is called twice after selecting an item in the grid: one time from a ListView and one time from a GridView. The XAML code contains both elements and the ListView one is in Collapsed Visibility state. Why am I getting SelectionChanged events from it?

推荐答案

Hi Vitaly - 你能给我一个repro项目吗?  Microsoft的MSMALL
Hi Vitaly - can you send me a repro project?  MSMALL at Microsoft


这篇关于在Grid Application Template中调用了两次ItemGridView_SelectionChanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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