C# Class MahApps.Metro.Controls.HamburgerMenu

The HamburgerMenu is based on a SplitView control. By default it contains a HamburgerButton and a ListView to display menu items.
Mostra file Open project: MahApps/MahApps.Metro Class Usage Examples

Public Properties

Property Type Description
CompactPaneLengthProperty System.Windows.DependencyProperty
ContentTransitionProperty System.Windows.DependencyProperty
DisplayModeProperty System.Windows.DependencyProperty
HamburgerHeightProperty System.Windows.DependencyProperty
HamburgerMarginProperty System.Windows.DependencyProperty
HamburgerMenuTemplateProperty System.Windows.DependencyProperty
HamburgerWidthProperty System.Windows.DependencyProperty
IsPaneOpenProperty System.Windows.DependencyProperty
ItemTemplateProperty System.Windows.DependencyProperty
ItemsSourceProperty System.Windows.DependencyProperty
OpenPaneLengthProperty System.Windows.DependencyProperty
OptionsItemTemplateProperty System.Windows.DependencyProperty
OptionsItemsSourceProperty System.Windows.DependencyProperty
OptionsVisibilityProperty System.Windows.DependencyProperty
PaneBackgroundProperty System.Windows.DependencyProperty
PanePlacementProperty System.Windows.DependencyProperty

Public Methods

Method Description
HamburgerMenu ( ) : System.Windows

Initializes a new instance of the HamburgerMenu class.

OnApplyTemplate ( ) : void

Override default OnApplyTemplate to capture children controls

Private Methods

Method Description
ButtonsListView_ItemClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
HamburgerButton_Click ( object sender, RoutedEventArgs e ) : void
OptionsListView_ItemClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

HamburgerMenu() public method

Initializes a new instance of the HamburgerMenu class.
public HamburgerMenu ( ) : System.Windows
return System.Windows

OnApplyTemplate() public method

Override default OnApplyTemplate to capture children controls
public OnApplyTemplate ( ) : void
return void

Property Details

CompactPaneLengthProperty public_oe static_oe property

Identifies the CompactPaneLength dependency property.
public static DependencyProperty,System.Windows CompactPaneLengthProperty
return System.Windows.DependencyProperty

ContentTransitionProperty public_oe static_oe property

public static DependencyProperty,System.Windows ContentTransitionProperty
return System.Windows.DependencyProperty

DisplayModeProperty public_oe static_oe property

Identifies the DisplayMode dependency property.
public static DependencyProperty,System.Windows DisplayModeProperty
return System.Windows.DependencyProperty

HamburgerHeightProperty public_oe static_oe property

Identifies the HamburgerHeight dependency property.
public static DependencyProperty,System.Windows HamburgerHeightProperty
return System.Windows.DependencyProperty

HamburgerMarginProperty public_oe static_oe property

Identifies the HamburgerMargin dependency property.
public static DependencyProperty,System.Windows HamburgerMarginProperty
return System.Windows.DependencyProperty

HamburgerMenuTemplateProperty public_oe static_oe property

Identifies the HamburgerMenuTemplate dependency property.
public static DependencyProperty,System.Windows HamburgerMenuTemplateProperty
return System.Windows.DependencyProperty

HamburgerWidthProperty public_oe static_oe property

Identifies the HamburgerWidth dependency property.
public static DependencyProperty,System.Windows HamburgerWidthProperty
return System.Windows.DependencyProperty

IsPaneOpenProperty public_oe static_oe property

Identifies the IsPaneOpen dependency property.
public static DependencyProperty,System.Windows IsPaneOpenProperty
return System.Windows.DependencyProperty

ItemTemplateProperty public_oe static_oe property

Identifies the ItemTemplate dependency property.
public static DependencyProperty,System.Windows ItemTemplateProperty
return System.Windows.DependencyProperty

ItemsSourceProperty public_oe static_oe property

Identifies the ItemsSource dependency property.
public static DependencyProperty,System.Windows ItemsSourceProperty
return System.Windows.DependencyProperty

OpenPaneLengthProperty public_oe static_oe property

Identifies the OpenPaneLength dependency property.
public static DependencyProperty,System.Windows OpenPaneLengthProperty
return System.Windows.DependencyProperty

OptionsItemTemplateProperty public_oe static_oe property

Identifies the OptionsItemTemplate dependency property.
public static DependencyProperty,System.Windows OptionsItemTemplateProperty
return System.Windows.DependencyProperty

OptionsItemsSourceProperty public_oe static_oe property

Identifies the OptionsItemsSource dependency property.
public static DependencyProperty,System.Windows OptionsItemsSourceProperty
return System.Windows.DependencyProperty

OptionsVisibilityProperty public_oe static_oe property

Identifies the OptionsVisibility dependency property.
public static DependencyProperty,System.Windows OptionsVisibilityProperty
return System.Windows.DependencyProperty

PaneBackgroundProperty public_oe static_oe property

Identifies the PaneBackground dependency property.
public static DependencyProperty,System.Windows PaneBackgroundProperty
return System.Windows.DependencyProperty

PanePlacementProperty public_oe static_oe property

Identifies the PanePlacement dependency property.
public static DependencyProperty,System.Windows PanePlacementProperty
return System.Windows.DependencyProperty