Intersoft ClientUI Documentation
How-to: Add Split Button and Dropdown Button to Tool Bar

This example shows how to add UXSplitButton and UXDropDownButton to UXToolBar.

Example

Description

UXToolBarButton implements a hybrid content model that exposes both Button and ItemsControl characteristic. This allows for more solid button architecture that streamlines various type of buttons into a single definition, which makes UI development much easier and more efficient. To learn more about this content model, see Content Model Overview.

As the result of the hybrid content model implementation, UXToolBarButton provides four types of button that you can apply through ButtonType property, such as discussed in the following.

Code

XAML
Copy Code
<Intersoft:UXToolBar>    <Intersoft:UXToolBarButton Content="Save" ButtonType="SplitButton">        <Intersoft:UXMenuItem Header="Open" />        <Intersoft:UXMenuItem Header="Save &amp; Exit" />        <Intersoft:UXMenuItem Header="Exit" />    </Intersoft:UXToolBarButton>    <Intersoft:UXToolBarButton Content="IM" ButtonType="DropdownButton">        <Intersoft:UXMenuItem Header="Yahoo" />        <Intersoft:UXMenuItem Header="Msn" />        <Intersoft:UXSeparator />        <Intersoft:UXMenuItem Header="Logout" />    </Intersoft:UXToolBarButton>                </Intersoft:UXToolBar>
See Also