天天看點

重新想象 Windows 8 Store Apps (20) - 動畫: ThemeAnimation(主題動畫)

<a href="http://files.cnblogs.com/webabcd/Windows8.rar">[源碼下載下傳]</a>

重新想象 Windows 8 Store Apps (20) - 動畫: ThemeAnimation(主題動畫)

介紹

重新想象 Windows 8 Store Apps 之 動畫

PopInThemeAnimation - 控件出現時的動畫, PopOutThemeAnimation - 控件消失時的動畫

FadeInThemeAnimation - 控件淡入的動畫, FadeOutThemeAnimation - 控件淡出的動畫

PointerDownThemeAnimation - 滑鼠(手指)在控件上按下時的動畫, PointerUpThemeAnimation - 滑鼠(手指)在控件上擡起時的動畫

SwipeHintThemeAnimation - 控件的 Swipe 動畫(當你的控件在收到 Swipe 後會做響應時), SwipeBackThemeAnimation - 控件的 Swipe 動畫(當你的控件在收到 Swipe 後不需要做任何響應時)

RepositionThemeAnimation - 控件重新定位時的動畫

SplitOpenThemeAnimation - 打開“拆分”控件的動畫, SplitCloseThemeAnimation - 關閉“拆分”控件的動畫

DragItemThemeAnimation, DragOverThemeAnimation, DropTargetItemThemeAnimation - 顧名思義的一些動畫效果,用于集合類的控件

示例

1、示範主題動畫之 PopIn, PopOut

Animation/ThemeAnimation/PopInPopOut.xaml

Animation/ThemeAnimation/PopInPopOut.xaml.cs

2、示範主題動畫之 FadeIn, FadeOut

Animation/ThemeAnimation/FadeInFadeOut.xaml

Animation/ThemeAnimation/FadeInFadeOut.xaml.cs

3、示範主題動畫之 PointerDown, PointerUp

Animation/ThemeAnimation/PointerDownPointerUp.xaml

Animation/ThemeAnimation/PointerDownPointerUp.xaml.cs

4、示範主題動畫之 SwipeHint, SwipeBack

Animation/ThemeAnimation/SwipeHintSwipeBack.xaml

Animation/ThemeAnimation/SwipeHintSwipeBack.xaml.cs

5、示範主題動畫之 Reposition

Animation/ThemeAnimation/Reposition.xaml

Animation/ThemeAnimation/Reposition.xaml.cs

6、示範主題動畫之 SplitOpen, SplitClose

Animation/ThemeAnimation/SplitOpenSplitClose.xaml

Animation/ThemeAnimation/SplitOpenSplitClose.xaml.cs

7、示範主題動畫之 DragItem, DragOver, DropTargetItem

Animation/ThemeAnimation/DragItemDragOverDropTargetItem.xaml

OK

繼續閱讀