SimpleButton.ButtonKind Property
Gets a value that specifies the button’s behavior (simple button, repeat button, or toggle button). This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
ButtonKind | One of the ButtonKind enumeration values. |
Available values:
Name | Description |
---|---|
Simple | Represents a simple button. The Click event is fired each time a button is clicked. |
Repeat | Represents the repeat button. The Click event is repeatedly fired until a button is released. |
Toggle | Represents a toggle button. Clicking a button toggles its state (pressed or released). |
Remarks
Toggle Mode
Set the ButtonKind property to Toggle to enable toggle mode.
By default, toggle mode supports two states, True and False. To enable the Indeterminate state, set the SimpleButton.IsThreeState property to true
.
In toggle mode, the following events occur on mouse click:
Repeat Mode
In the repeat mode, the Click event is repeatedly fired until a button is released.
Set the ButtonKind property to Repeat to enable the repeat mode.
Use the SimpleButton.Delay and SimpleButton.Interval properties to control the repeat behavior.