关于ScatterView和LibraryContainer之间的ZIndex属性 [英] About ZIndex property between ScatterView and LibraryContainer

查看:77
本文介绍了关于ScatterView和LibraryContainer之间的ZIndex属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在处理ScatterView和LibraryContainer之间的拖放时遇到问题,


我使用Surface 2.0 sdk示例,shoppingcart,DragDropScatterView帮我处理拖放功能。


当我拖动一个scatterview项目并想将它放到librarycontainer时,我发现scatterview项目在librarycontainer下面,我希望它成为顶级。我尝试更改关于item和LibraryContainer的ZIndex属性,但它没有用。

< Style.Triggers> 
< Trigger Property =" Tag"值= QUOT; dragEnter事件">
< Setter Property =" ZIndex"值= QUOT; 100" />
< / Trigger>
< /Style.Triggers>>




 ScatterViewItem svi = mySV.ItemContainerGenerator.ContainerFromItem(e .Cursor.Data)作为ScatterViewItem; 
svi.ZIndex = 100;



我该怎么办?


谢谢你,抱歉我的英语不好。


解决方案

请不要发帖交叉。


你已经在这里打开它了:


http://social.msdn.microsoft.com/Forums/en-US/6306c449-c665-4d42-877e-7b4bdef2fb70/drag-and-drop-drag- a-scatterviewitem-and-drop-to-a librarycontainer


如果Z索引没有帮助,请检查我在线程中发送的关于视觉布局的示例elenement。通过知道视觉树中的第一个将底部的那个重新组织它们


问候


serge


Hi,

I have a problem when I deal with Drag-and Drop between ScatterView and LibraryContainer,

I use Surface 2.0 sdk samples, shoppingcart, DragDropScatterView to help me with drag and drop function.

When I drag a scatterview item and want to drop it to librarycontainer, I found the scatterview item is under the librarycontainer,I want it to be the top. I try to change the ZIndex property about item and LibraryContainer, but it did no work.

<Style.Triggers>
    <Trigger Property="Tag" Value="DragEnter">
        <Setter Property="ZIndex" Value="100"/>
    </Trigger>
</Style.Triggers>>


ScatterViewItem svi = mySV.ItemContainerGenerator.ContainerFromItem(e.Cursor.Data) as ScatterViewItem;
svi.ZIndex = 100;

How should I do?

Thank you and sorry for my bad English.

解决方案

PLease do not post cross post.

You have already open it here:

http://social.msdn.microsoft.com/Forums/en-US/6306c449-c665-4d42-877e-7b4bdef2fb70/drag-and-drop-drag-a-scatterviewitem-and-drop-to-a-librarycontainer

IF the Z index does not help, check in the sample I send you in thread about the Layout in visual elenement. Reorganize them in the way you want by knowing the first one in the visual tree will the one at the bottom

regards

serge


这篇关于关于ScatterView和LibraryContainer之间的ZIndex属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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