赞
踩
最近在学习WPF,看到了动画的使用,就想着做个滑动切换子控件的效果,仅作为学习上手Demo
效果:
- <Canvas x:Name="testPanel" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="800" >
-
- <StackPanel x:Name="Panel1" Canvas.Left="0" Canvas.Top="100" Width="100">
- <TextBlock Text="panel 1"></TextBlock>
- <TextBlock Text="向右滑动切换→"></TextBlock>
- </StackPanel>
- <StackPanel x:Name="Panel2" Canvas.Left="0" Canvas.Top="100" Width="100">
- <TextBlock Text="panel 2"></TextBlock>
- <TextBlock Text="向右滑动切换→"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。