Export (0) Print
Expand All

ElementMenu Class



Represents a control that implements a collection of items in a tree hierarchy that users can select.

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

'Usage

[TemplatePartAttribute(Name="PART_HitArea")] 
[StyleTypedPropertyAttribute(StyleTargetType=typeof(ElementMenuItem), Property="ItemContainerStyle")] 
[TemplatePartAttribute(Name="PART_DragCursor")] 
public class ElementMenu : ItemsControl
/** @attribute TemplatePartAttribute(Name="PART_HitArea") */ 
/** @attribute StyleTypedPropertyAttribute(StyleTargetType=Microsoft.Surface.Presentation.Controls.ElementMenuItem, Property="ItemContainerStyle") */ 
/** @attribute TemplatePartAttribute(Name="PART_DragCursor") */ 
public class ElementMenu extends ItemsControl
TemplatePartAttribute(Name="PART_HitArea") 
StyleTypedPropertyAttribute(StyleTargetType=Microsoft.Surface.Presentation.Controls.ElementMenuItem, Property="ItemContainerStyle") 
TemplatePartAttribute(Name="PART_DragCursor") 
public class ElementMenu extends ItemsControl

An ElementMenu consists of a collection of ElementMenuItem objects. When a user selects one of the nodes in the tree hierarchy, the next level of nodes appears, as in the following image.

The ElementMenu control expanded

An ElementMenu control expanded

For more information about how to use this class, see Using the ElementMenu Control.

The ElementMenu control includes touch event handlers as well as mouse event handlers. The touch event handlers are applicable to both devices made for Microsoft Surface and Windows Touch computers.


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.ItemsControl
                Microsoft.Surface.Presentation.Controls.ElementMenu

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:
© 2014 Microsoft