Export (0) Print
Expand All

LibraryBar Class



Represents a control that places items in a horizontal bar.

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

'Usage

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

The LibraryBar class is an ItemsControl control that arranges items in a horizontal bar. LibraryBar provides the following features:

  • Arrange items in one or more rows by setting the Rows property.

  • Group items by using properties and methods of the CollectionView and CollectionViewSource classes and of the ICollectionView interface. LibraryBar supports a single group description only.

  • Customize the style that is applied to groups or use the default group style that is built into LibraryBar.

  • By default, LibraryBar supports drag-and-drop operations.

  • By default, when an item is dragged from the LibraryBar control, it remains visible but it is dimmed to indicate that it has been placed into another control.

For more information, see the following topics:


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.LibraryBar

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