Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / DropDownButton Class
Members Example


In This Topic
    DropDownButton Class
    In This Topic
    When clicked, this Button opens a Popup that displays a new View.
    Syntax
    'Usage
     
    
    Dim instance As DropDownButton
    Remarks

    It is possible to set the Popup's size.

    It is also possible to set the Popup's location, which allows to anchor it to any corner or side of the Control.

    Example

    The following code would display this control:

    <xctk:DropDownButton WidthRequest="100"
                         Content="Click Me"
                         DropDownPosition="Left"
                         Margin="50">
      <xctk:DropDownButton.DropDownContent>
        <VerticalStackLayout Margin="10">
          <xctk:TextBox Text="First"
                        Margin="5"/>
          <xctk:TextBox Text="Second"
                        Margin="5"/>
          <xctk:Button Content="Check"
                       Margin="5"/>
        </VerticalStackLayout>
      <xctk:DropDownButton.DropDownContent>
    </xctk:DropDownButton>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Microsoft.Maui.Controls.Element
             Microsoft.Maui.Controls.NavigableElement
                Microsoft.Maui.Controls.VisualElement
                   Microsoft.Maui.Controls.View
                      Microsoft.Maui.Controls.Compatibility.Layout
                         Microsoft.Maui.Controls.TemplatedView
                            Xceed.Maui.Toolkit.Control
                               Xceed.Maui.Toolkit.ContentControl
                                  Xceed.Maui.Toolkit.DropDownButton

    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