Represents a button that drops down a context menu.

Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll)

Syntax

C#
public class DropDownButton : Button
Visual Basic
Public Class DropDownButton _
	Inherits Button

Remarks

DropDown property defines the ContextMenu to drop down. IsDropDownOpen property determines if the drop down ContextMenu is open.

Examples

CopyXAML
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dz="http://schemas.devzest.com/presentation"
    SizeToContent="WidthAndHeight">
    <dz:DropDownButton Content="Click">
        <dz:DropDownButton.DropDown>
            <ContextMenu>
                <MenuItem Header="MenuItem 1" />
                <MenuItem Header="MenuItem 2" />
            </ContextMenu>
        </dz:DropDownButton.DropDown>
    </dz:DropDownButton>
</Window>

Inheritance Hierarchy

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..::..ContentControl
                System.Windows.Controls.Primitives..::..ButtonBase
                  System.Windows.Controls..::..Button
                    DevZest.Windows..::..DropDownButton

See Also