C1ToolbarSplitButton control represents a drop-down split button on the C1ToobarStrip.
Namespace:
C1.Silverlight.ToolbarAssembly: C1.Silverlight.Toolbar (in C1.Silverlight.Toolbar.dll)
Syntax
C# |
---|
public class C1ToolbarSplitButton : C1ToolbarDropDown |
Visual Basic |
---|
Public Class C1ToolbarSplitButton _ Inherits C1ToolbarDropDown |
Remarks
It's similar to C1ToolbarDropDown but contains two clickable areas.
When clicking on rightmost part with downward-pointing rectangle it
displays popup panel with Content property or context menu set by Menu property.
Clicking on left part of button fires Click event as in the standard button.
Usually the Click event is used to perform default or last action while popup
allows to select alternative options.
Examples
Split button with popup menu.
Copy CodeC#
<c1:C1ToolbarSplitButton Padding="2" Header="Defaut" Click="SetDefaultStyle"> <c1:C1ToolbarDropDown.Menu> <c1:C1ContextMenu> <c1:C1MenuItem Header="Heading 1" FontSize="14" /> <c1:C1MenuItem Header="Heading 2" FontSize="12" /> <c1:C1MenuItem Header="Title" FontWeight="Bold" /> <c1:C1MenuItem Header="Subtitle" FontWeight="SemiBold" FontStyle="Italic" /> <c1:C1MenuItem Header="Quote" FontStyle="Italic" /> </c1:C1ContextMenu> </c1:C1ToolbarDropDown.Menu> </c1:C1ToolbarSplitButton> |
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
C1HeaderedContentControl
C1DropDownButton
C1DropDown
C1.Silverlight.Toolbar..::..C1ToolbarDropDown
C1.Silverlight.Toolbar..::..C1ToolbarSplitButton
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
C1HeaderedContentControl
C1DropDownButton
C1DropDown
C1.Silverlight.Toolbar..::..C1ToolbarDropDown
C1.Silverlight.Toolbar..::..C1ToolbarSplitButton