Loading...

SplitButton

SplitButton


Inherits from Text Control.

Property:


Click

Specifies the name of the Function to call when the user clicks the SplitButton.

Example

<SplitButton Name="SplitButton1" Text="Click me" Click="ShowAlert"/>

This example shows how to call a function when the SplitButton is clicked, passing an argument.

<SplitButton Name="SplitButton1" Text="Click me" Click="ShowAlert('My message')"/>

Disabled

Use the Disabled property to disable a control or set it to read-only.
The disabled property support data binding or an explicit value (true, false).

Example

<SplitButton Disabled="{Binding Path:Customer.NotActive}"/>
or
<SplitButton Disabled="true"/>

You cannot use both a Binding AND the control APIs at the same time to set the disabled state of a control.
If the Disabled property of a control has a Binding, using the control.Disable() or control.Enable() APIs will not work (binding will win).

Valid values for the Disabled property:

  • True
  • False
  • {Binding}

StopClickEventPropagation

Stops the click event from propagating up the DOM tree.

Type

Specifies the default look of the button. Valid values are "Default", "Primary", "Secondary", "Confirm"

Items

To specify a collection of sub-actions in a SplitButton, add one or more SplitButtonItem objects as children of the SplitButton.

<SplitButton Text="Button 1" Click="SplitStuff()" Type="Default" >
<SplitButtonItem Text="Action 1" Click="SplitItem1()"/>
<SplitButtonItem Text="Action 2" Click="SplitItem2()"/>
</SplitButton>

Hotkey

Specifies the hotkey for the control.

Example

<Input Hotkey="Alt+B"/>

img


Videos