Export (0) Print
Expand All

LibraryStack Class



Represents a control that displays items in a stack arrangement and enables users to shift the top item among its child elements.

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

'Usage

[StyleTypedPropertyAttribute(Property="DragCursorStyle", StyleTargetType=typeof(LibraryStackItem))] 
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=typeof(LibraryStackItem))] 
public class LibraryStack : Selector
/** @attribute StyleTypedPropertyAttribute(Property="DragCursorStyle", StyleTargetType=Microsoft.Surface.Presentation.Controls.LibraryStackItem) */ 
/** @attribute StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Microsoft.Surface.Presentation.Controls.LibraryStackItem) */ 
public class LibraryStack extends Selector
StyleTypedPropertyAttribute(Property="DragCursorStyle", StyleTargetType=Microsoft.Surface.Presentation.Controls.LibraryStackItem) 
StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Microsoft.Surface.Presentation.Controls.LibraryStackItem) 
public class LibraryStack extends Selector

By default, LibraryStack supports drag-and-drop operations. For more information, see Using the LibraryStack Control and the Shopping Cart SDK sample.

The SelectedIndex property of a LibraryStack control is inherited from the Selector class but it is handled differently by LibraryStack than the ancestor class. Because a LibraryStack control always has a selected item (unless the Items collection is empty), the SelectedIndex property of a non-empty LibraryStack object is initialized to zero.

Similarly, the SelectedItem property is always non-null unless the Items collection is empty.

The ItemsSource property for LibraryStack has restrictions on what can be assigned to it. For more information, see OnItemsSourceChanged.


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
                 System.Windows.Controls.Primitives.Selector
                  Microsoft.Surface.Presentation.Controls.LibraryStack

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