OnSelectionChanged for GridView(C ++实现) [英] OnSelectionChanged for GridView (C++ implementation)

查看:68
本文介绍了OnSelectionChanged for GridView(C ++实现)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GridView绑定到包含图像的矢量。

I have a GridView binded to a vector contained images.

在SelectionChanged事件 - 我如何才能选择项目?是否有GridViewItem(作为ListView的ListViewItem)?


如何才能获得它?

Upon SelectionChanged event - how can i get the item selected ? Is there a GridViewItem (as the ListViewItem for ListView) ?
How can I get it ?

谢谢,

Kesem 

Kesem 

推荐答案

您好ZurMK,

Hi ZurMK,

您可以使用SelectionChangedEventArgs :: AddedItems集合来获取所选项目。

you can use the SelectionChangedEventArgs::AddedItems collection to get the selected Items.

谢谢,

Ivan


这篇关于OnSelectionChanged for GridView(C ++实现)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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