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


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace : DropDownButton Class
Represents a button that when clicked displays a drop-down in which you can place any custom content.
Syntax
'Declaration
 
<TemplatePartAttribute(Name="PART_DropDownButton", Type=System.Windows.Controls.Primitives.ToggleButton)>

<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 DropDownButton 

   Inherits System.Windows.Controls.ContentControl
'Usage
 
Dim instance As DropDownButton
[TemplatePart(Name="PART_DropDownButton", Type=System.Windows.Controls.Primitives.ToggleButton)]

[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 DropDownButton : System.Windows.Controls.ContentControl 
Example
The following shows how to create a DropDownButton.
<xctk:DropDownButton Content="Click Me" Margin="15" >

    <xctk:DropDownButton.DropDownContent>

        <xctk:ColorCanvas />

    </xctk:DropDownButton.DropDownContent>

</xctk:DropDownButton>
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.MaterialDropDown
                           Xceed.Wpf.Toolkit.SplitButton

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DropDownButton Members
Xceed.Wpf.Toolkit Namespace