Componentone Toolbar for WPF and Silverlight
C1.WPF.Toolbar Namespace / C1ToolbarDropDown Class
Members Example

In This Topic
    C1ToolbarDropDown Class
    In This Topic
    C1ToolbarDropDown control represents a drop-down button on the C1ToobarStrip. When clicking it displays popup panel with Content property or context menu set by Menu property.
    Object Model
    C1ToolbarDropDown Class
    Syntax
    'Declaration
     
    
    Public Class C1ToolbarDropDown 
       Inherits C1.WPF.C1DropDown
    public class C1ToolbarDropDown : C1.WPF.C1DropDown 
    Remarks
    Example 1. Drop-down with popup stack panel with buttons.
    Example
    Example 1. Drop-down with popup stack panel with buttons. Example 2. Dropdown with popup menu.
    >
    <c1:C1ToolbarDropDown Padding="2" Header="Color">
      <c1:C1ToolbarDropDown.Content>
        <StackPanel Margin="2" Orientation="Horizontal">
          <Button Margin="2" Content="Red" Foreground="Red" />
          <Button Margin="2" Content="Green" Foreground="Green" />
          <Button Margin="2" Content="Blue" Foreground="Blue" />
        </StackPanel>
      </c1:C1ToolbarDropDown.Content>
    </c1:C1ToolbarDropDown>
    >
    <c1:C1ToolbarDropDown Padding="2" Header="Color">
      <c1:C1ToolbarDropDown.Menu>
        <c1:C1ContextMenu>
          <c1:C1MenuItem IsCheckable="True" Header="Red" HeaderForeground="Red" />
          <c1:C1MenuItem IsCheckable="True" Header="Green" HeaderForeground="Green" />
          <c1:C1MenuItem IsCheckable="True" Header="Blue" HeaderForeground="Blue" />
        </c1:C1ContextMenu>
      </c1:C1ToolbarDropDown.Menu>
    </c1:C1ToolbarDropDown>
    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
                            C1.WPF.C1HeaderedContentControl
                               C1.WPF.C1DropDownButton
                                  C1.WPF.C1DropDown
                                     C1.WPF.Toolbar.C1ToolbarDropDown
                                        C1.WPF.Toolbar.C1ToolbarSplitButton

    See Also