Xceed Toolkit Plus for WPF v4.6 Documentation
SplitButton Class
Members  Example 


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace : SplitButton Class
Represents a button that can be clicked and also provides a drop down in which you can place any custom content.
Syntax
'Declaration
 
<TemplatePartAttribute(Name="PART_ActionButton", Type=System.Windows.Controls.Button)>
<DefaultPropertyAttribute("Content")>
<ContentPropertyAttribute("Content")>
<LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)>
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class SplitButton 
   Inherits DropDownButton
'Usage
 
Dim instance As SplitButton
[TemplatePart(Name="PART_ActionButton", Type=System.Windows.Controls.Button)]
[DefaultProperty("Content")]
[ContentProperty("Content")]
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class SplitButton : DropDownButton 
Example
The following example creates a SplitButton whose dropdown contains a ColorCanvas control.
<xctk:SplitButton Content="Click Me">
  <xctk:SplitButton.DropDownContent>
    <xctk:ColorCanvas />
  </xctk:SplitButton.DropDownContent>
</xctk:SplitButton>
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
                        Xceed.Wpf.Toolkit.DropDownButton
                           Xceed.Wpf.Toolkit.SplitButton

Requirements

See Also

Reference

SplitButton Members
Xceed.Wpf.Toolkit Namespace