如何交换或移动页面中的项目? [英] How to swap or move the items in the page?

查看:52
本文介绍了如何交换或移动页面中的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



正在使用C#和xaml开发Windows 8.1应用程序。

我有页面,我有2行和2列,如下所示。

我想要做的是当我按住(选择项目)第一个网格并且我想将它移动到第4个网格时,然后第4个网格应该移动到第1个网格,第1个网格必须移动到第4个网格。(交换/移动)。

我怎样才能实现这个目标?

任何人请帮帮我

Hi,
am developing a Windows 8.1 app using C# and xaml.
I have page in that i have 2 rows and 2 columns like below.
What i want to do is when i press and hold(selected item) the 1st grid and i want to move it to the 4th grid, then 4th grid should be move to 1st grid and 1st grid has to move to the 4th grid.(swapping/moving).
How can i achieve this?
Anybody please help me

推荐答案

我可以将网格视图项目从1移动到2,2到4,3到4和4到3.

但是当我将第1项移动到第4项时,它们都是必须更换..意味着,第1项必须移动到第4项,第4项必须更换第1项。

我如何实现这一目标?
i can able to move the grid view items from 1 to 2, 2 to 4, 3 to 4 and 4 to 3.
But when i move the 1st item to 4th, both of them has to be replaced.. means, 1st item has to move to 4th one and 4th item has to replace the 1st item.
How can i achieve this?


这篇关于如何交换或移动页面中的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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