实现效果如下:
思路:将前后两张图片进行切割,分别赋值给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"
x