SurfaceWindow Class



Provides the ability to create, configure, show, and manage the lifetime of windows and dialog boxes.

Namespace: Microsoft.Surface.Presentation.Controls
Assembly: Microsoft.Surface.Presentation (in Microsoft.Surface.Presentation)

'Usage

public class SurfaceWindow : Window
public class SurfaceWindow extends Window
public class SurfaceWindow extends Window

The SurfaceWindow class derives from the Window class and provides several enhancements that are required for the Microsoft Surface environment.

A SurfaceWindow control provides and activates the necessary event handlers to make sure that it receives touch events and displays Touch Visualizations. By default, SurfaceWindow appears maximized.

ImportantImportant
Do not specify values for the properties that are related to window size (for example, the inherited Height and Width properties). If you specify size values, your application will not be displayed in full-screen mode when running in the Surface environment (in Surface Shell, on a device made for Surface).

On systems with multiple monitors, a SurfaceWindow control automatically recognizes which monitor is the touch-sensitive surface and displays itself there.


System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Media.Visual
         System.Windows.UIElement
           System.Windows.FrameworkElement
             System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                 System.Windows.Window
                  Microsoft.Surface.Presentation.Controls.SurfaceWindow

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Requirements

Operating System (OS)Windows 7
Software Developer Kit (SDK)Surface 2.0
.NET Framework 4
Developer environmentVisual Studio 2010, Express or full edition
Microsoft Expression Blend 4.0 (optional)
End-user hardwareDevices made for Surface 2.0, or
Windows Touch computers

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
Show: