标题:有没有会Windows phone 8 的大神在,求解拖拽怎么实现
取消只看楼主
Naffaell
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-6-3
 问题点数:0 回复次数:0 
有没有会Windows phone 8 的大神在,求解拖拽怎么实现
要做的是将右边的文字“苹果”拖拽到左边的图片的苹果上面

xaml代码如下:
<Canvas x:Name="piccanvas" HorizontalAlignment="Left" Height="460" VerticalAlignment="Top" Width="611" Margin="0,10,0,0"> <Canvas.Background> <ImageBrush Stretch="Fill" ImageSource="/images/Picture1.jpg"/> </Canvas.Background> <StackPanel x:Name="wordspanel" Height="300" Canvas.Left="622" Canvas.Top="2" Width="100"> <TextBlock x:Name="txtapple" TextWrapping="Wrap" Text="苹果" FontSize="30" HorizontalAlignment="Center" /> <TextBlock x:Name="txtbanana" TextWrapping="Wrap" Text="香蕉" FontSize="30" HorizontalAlignment="Center"> </TextBlock> <TextBlock x:Name="txtorange" TextWrapping="Wrap" Text="橙子" FontSize="30" HorizontalAlignment="Center"> </TextBlock> <TextBlock x:Name="txtpineapple" TextWrapping="Wrap" Text="菠萝" FontSize="30" HorizontalAlignment="Center"> </TextBlock> <TextBlock x:Name="txtgrapes" TextWrapping="Wrap" Text="葡萄" FontSize="30" HorizontalAlignment="Center"> </TextBlock </StackPanel> <Button x:Name="gamepageconfirmbtn" Content="确定" Canvas.Left="622" Canvas.Top="307" Width="100" Click="gamepageconfirmbtn_Click_1"/> <Button x:Name="gamepagebackbtn" Content="返回" Canvas.Left="622" Canvas.Top="381" Width="100" Height="70" Click="gamepagebackbtn_Click"/> <TextBlock x:Name="appletxtblk" Canvas.Left="96" TextWrapping="Wrap" Canvas.Top="240" Height="163" Width="212" MouseEnter="appletxtblk_MouseEnter" FontSize="30"/> </Canvas>

求帮忙
搜索更多相关主题的帖子: Windows 苹果 
2013-06-03 15:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-414423-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.140119 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved