问题描述
我在处理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;
我该怎么办?
谢谢你,抱歉我的英语不好。
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.
这篇关于关于ScatterView和LibraryContainer之间的ZIndex属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!