Search code examples
c#wpfpixelsense

When I run a WPF application using the Surface 2.0 SDK, no surface controls show up


So I have a simple C#/WPF 4.0 application that includes several SurfaceTextBox instances. When I debug the app in Visual Studio everything looks fine and the Surface controls load as expected.

When I run the app on a separate Windows 7 Tablet device, all of the Surface-specific controls do not load, and they look as if their visibility property is set to hidden.

The Surface dll references I added are Microsoft.Surface.Core and Microsoft.Surface.Presentation. Do I need other references as well?

The SDK version I'm using http://www.microsoft.com/en-us/download/details.aspx?id=26716


Solution

  • You need to make sure that the Win7 tablet has the Surface Runtime installed.