The calling thread must be STA, because many UI components require this.
how to solve this thread Am given below my code
foreach (TabletDevice tabletDevice in Tablet.TabletDevices)
//Only detect if it is a touch Screen not how many touches (i.e. Single touch or Multi-touch)
if (tabletDevice.Type == TabletDeviceType.Touch)