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");
运行效果: