microsoft surface實現圖片多點操作更簡單
下載安裝 Microsoft 下載中心
| SurfaceRuntime.msi | ||
| SurfaceSDK.msi |
首先新建Microsoft Surface 2.0的一個項目:
前臺添加:<s:ScatterView x:Name="ScatterView1">
<s:ScatterView.ItemTemplate>
<DataTemplate>
<Image Source="{Binding}"/>
</DataTemplate>
</s:ScatterView.ItemTemplate>
</s:ScatterView>
后臺代碼添加: this.ScatterView1.ItemsSource = Directory.GetFiles(
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "*.jpg");
運行效果:

浙公網安備 33010602011771號