NavigationBar ClassDW.WPFToolkit Documentation
A control which shows a bunch of items which can be expanded and collapsed. All expanded items shares the available space left.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsItemsControl
                DW.WPFToolkit.ControlsNavigationBar

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class NavigationBar : ItemsControl

The NavigationBar type exposes the following members.

Constructors

  NameDescription
Public methodNavigationBar
Initializes a new instance of the NavigationBar class.
Top
Methods

  NameDescription
Protected methodGetContainerForItemOverride
Generates a new child item container to hold in the NavigationBar.
(Overrides ItemsControlGetContainerForItemOverride.)
Protected methodIsItemItsOwnContainerOverride
Checks if the item is already the correct item container. If not the GetContainerForItemOverride will be used to generate the right container.
(Overrides ItemsControlIsItemItsOwnContainerOverride(Object).)
Top
Fields

  NameDescription
Public fieldStatic memberContentStringFormatProperty
Identifies the ContentStringFormat dependency property.
Public fieldStatic memberContentTemplateProperty
Identifies the ContentTemplate dependency property.
Public fieldStatic memberContentTemplateSelectorProperty
Identifies the ContentTemplateSelector dependency property.
Public fieldStatic memberExpandedItemIndexesProperty
Identifies the ExpandedItemIndexes dependency property.
Public fieldStatic memberExpansionModeProperty
Identifies the ExpansionMode dependency property.
Public fieldStatic memberOrientationProperty
Identifies the Orientation dependency property.
Top
Properties

  NameDescription
Public propertyContentStringFormat
Gets or sets the content string format.
Public propertyContentTemplate
Gets or sets the content template
Public propertyContentTemplateSelector
Gets or sets the content template selector.
Public propertyExpandedItemIndexes
Gets or sets a comma separated value of item indexes which are expanded on default.
Public propertyExpansionMode
Gets or sets a value which indicates how items can be expanded.
Public propertyOrientation
Gets or sets a value which indicates the orientation of the NavigationBar.
Top
Examples

XAML
<WPFToolkit:NavigationBar AllowMultiExpandings="True">

    <WPFToolkit:NavigationBarItem IsExpanded="True" Header="First">
        <ListBox />
    </WPFToolkit:NavigationBarItem>

    <WPFToolkit:NavigationBarItem Header="Second">
        <ListBox />
    </WPFToolkit:NavigationBarItem>

    <WPFToolkit:NavigationBarItem Header="Third">
        <ListBox />
    </WPFToolkit:NavigationBarItem>

</WPFToolkit:NavigationBar>
See Also

Reference