天天看點

WPF實作3D切圖式過渡效果

實作效果如下:

WPF實作3D切圖式過渡效果

思路:将前後兩張圖檔進行切割,分别指派給3D立方體的幾個面,然後進行縮放轉動。

步驟:

1、3D立方體自定義控件My3DCubeControl

布局xaml:

<UserControl x:Class="_3DRollImage.My3DCubeControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:_3DRollImage"
             x:Name="MyCube">
    <UserControl.Resou
           

繼續閱讀