实现效果如下:

思路:在自定义控件中放置两个Image控件,点击前后翻页按钮时对图片进行裁剪,随机打乱顺序后添加动作。
步骤:
1、MyImageControl控件
/// <summary>
/// MyImageControl.xaml 的交互逻辑
/// </summary>
public partial class MyImageControl : UserControl
{
public static readonly DependencyProperty ShowImageProperty = DependencyProperty.Register("ShowImage", typeof(BitmapImage), typeof(MyImageControl), new PropertyMetadata(null));
public BitmapImage ShowImage
{
get { return (BitmapImage)GetValue(ShowImageProperty)
订阅专栏 解锁全文
2033



被折叠的 条评论
为什么被折叠?



