//Nothing //Nothing string[] files = Directory.GetFiles(Path.GetDirectoryName(App.config.MainConfigPath), "bgmusic_?.mp3"); ) { Random random = new Random(); mediaElement.Source = new Uri(files[random.Next(files.Count())]); this.volumeButton.Vis
实现效果如下: 功能说明: 程序运行,图片自动循环播放,采用定时器实现; 当用户用手势触摸滑动时,定时器的自动播放取消,停止触摸时,自动无限播放; 代码如下 : 采用封装视图,外部进行调用即可: 1.//// PSScrollVIew.h// ScrollView实现自动循环滚动广告//// Created by mac1 on 15/9/30.// Copyright (c) 2015年 www.iphonetrain.com. All rights reserved.// #impo