The long awaited Surface 2.0 SDK has been just released. to get started go to the new Surface Developer Center and download the SDK.
Once downloaded and installed, start VS2010, you will find the Surface 2.0 project templates available
Let’s create a sample application, I will create a simple twitter client (hopefully before scottgu creates it) let’s name it TwittSurf
Once we created the project you will have the same project structure as you have in the Surface 1.0 version, let’s create our UI
We will add a ScatterView control, inside it we will add a SurfaceListBox and configure its ItemDataTemplate.
In the Loaded event of the Window we will write our code, I will use the Twitterizer .net Library (download the lite version) to save some time, the code below will submit a query to twitter and display the result in the list box
Before you run the application Open the Input Simulator (Start Menu-> Programs-> Microsoft Surface 2.0 SDK-> Tools) this tool is used to simulate the different types of inputs (finger, blob, tag).
Run the application, the list will appear with the search results, select the finger input from the input simulator, press and hold the left mouse button to simulate a finger contact on the Surface.
You can drag/rotate the list box around, to scale the list you need two fingers, you can do this by pressing/holding the left mouse button on one corner of the list, then pressing the right mouse button to keep the finger contact in this location, then you can add another finger contact on another corner by clicking the left mouse button and when you move the second finger the list will scale.
I believe you can also simulate more than one contact by connecting additional mice, but unfortunately that didn’t work for me.
You can download the code from here
I’m very excited to have the SDK, Definitely I’m be spending more time playing with it.