我們試圖弄清楚如何將LibraryStack容器中的項目拖動到ScatterView上,例如照片查看器示例應用程序的工作方式。目前,該項目在我們將其拖出之後會飛回到LibraryStack。我們可以將項目拖放到其他LibraryStack或LibraryBars中。在Surface上的ScatterView中使用LibraryStacks
這裏是我們試圖什麼樣:
<s:SurfaceWindow x:Class="Idia_seminar.SurfaceWindow1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.microsoft.com/surface/2008"
Title="Idia_seminar"
>
<s:SurfaceWindow.Resources>
<ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
</s:SurfaceWindow.Resources>
<Grid Background="{StaticResource WindowBackground}" >
<s:ScatterView Name="scatterView1" AllowDrop="True">
<s:SurfaceButton Name="surfaceButton1">Button</s:SurfaceButton>
<s:LibraryStack AllowDrop="True">
<s:LibraryStackItem Content="hello"></s:LibraryStackItem>
</s:LibraryStack>
</s:ScatterView>
</Grid>
</s:SurfaceWindow>
謝謝!
非常有幫助,謝謝! – jackbot 2010-04-30 11:51:30