New to Telerik UI for WPFStart a free 30-day trial

Represents a split button that facilitates a primary action and offers a drop-down menu with additional supplementary actions. This class includes properties for managing the visibility of its components, the ability to check and uncheck the button, and control over the drop-down menu's appearance and behavior. The RadSplitButton supports events for actions such as clicking the button, opening, closing, and toggling the drop-down. It is designed to be styled and customized, providing features like auto-open delays and command binding for integration into MVVM architectures.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Buttons")]
public class RadSplitButton : ContentControl, ICommandSource, IDisposable

Inheritance: objectRadSplitButton

Derived Classes: RadRibbonSplitButton

Implements: ICommandSourceIDisposable

Constructors

Initializes a new instance of the RadSplitButton class.

C#
public RadSplitButton()

Fields

ActivateEvent

RoutedEvent

Identifies the Activate routed event.

C#
public static readonly RoutedEvent ActivateEvent

AutoOpenDelayProperty

DependencyProperty

Identifies the AutoOpenDelay property.

C#
public static readonly DependencyProperty AutoOpenDelayProperty

ButtonCornerRadiusProperty

DependencyProperty

Identifies the ButtonCornerRadius property.

C#
public static readonly DependencyProperty ButtonCornerRadiusProperty

ButtonPartStyleProperty

DependencyProperty

Identifies the ButtonPartStyle dependency property.

C#
public static readonly DependencyProperty ButtonPartStyleProperty

CheckedEvent

RoutedEvent

Occurs when the Button part become checked.

C#
public static readonly RoutedEvent CheckedEvent

ClickEvent

RoutedEvent

Identifies the Click property.

C#
public static readonly RoutedEvent ClickEvent

CloseOnEscapeProperty

DependencyProperty

Identifies the CloseOnEscape property.

C#
public static readonly DependencyProperty CloseOnEscapeProperty

Identifies the CloseOnPopupMouseLeftButtonUp property.

C#
public static readonly DependencyProperty CloseOnPopupMouseLeftButtonUpProperty

CommandParameterProperty

DependencyProperty

Identifies the CommandParameter property.

C#
public static readonly DependencyProperty CommandParameterProperty

CommandProperty

DependencyProperty

Identifies the Command property.

C#
public static readonly DependencyProperty CommandProperty

CommandTargetProperty

DependencyProperty

Identifies the CommandTarget property.

C#
public static readonly DependencyProperty CommandTargetProperty

CornerRadiusProperty

DependencyProperty

Identifies the CornerRadius property.

C#
public static readonly DependencyProperty CornerRadiusProperty

Identifies the DropDownButtonPosition property.

C#
public static readonly DependencyProperty DropDownButtonPositionProperty

Identifies the DropDownClosed property.

C#
public static readonly RoutedEvent DropDownClosedEvent

DropDownContentProperty

DependencyProperty

Identifies the DropDownContent property.

C#
public static readonly DependencyProperty DropDownContentProperty

Identifies the DropDownContentTemplate property.

C#
public static readonly DependencyProperty DropDownContentTemplateProperty

Identifies the DropDownContentTemplateSelector property.

C#
public static readonly DependencyProperty DropDownContentTemplateSelectorProperty

DropDownHeightProperty

DependencyProperty

Identifies the PopupHeight property.

C#
public static readonly DependencyProperty DropDownHeightProperty

Identifies the DropDownContent property.

C#
public static readonly DependencyProperty DropDownIndicatorVisibilityProperty

DropDownMaxHeightProperty

DependencyProperty

Identifies the PopupMaxHeight property.

C#
public static readonly DependencyProperty DropDownMaxHeightProperty

DropDownMaxWidthProperty

DependencyProperty

Identifies the PopupMaxWidth property.

C#
public static readonly DependencyProperty DropDownMaxWidthProperty

Identifies the DropDownOpened property.

C#
public static readonly RoutedEvent DropDownOpenedEvent

Identifies the DropDownOpening property.

C#
public static readonly RoutedEvent DropDownOpeningEvent

DropDownPlacementProperty

DependencyProperty

Identifies the PopupPlacement property.

C#
public static readonly DependencyProperty DropDownPlacementProperty

DropDownWidthProperty

DependencyProperty

Identifies the PopupWidth property.

C#
public static readonly DependencyProperty DropDownWidthProperty

IsBackgroundVisibleProperty

DependencyProperty

Identifies the IsBackgroundVisible property.

C#
public static readonly DependencyProperty IsBackgroundVisibleProperty

IsButtonPartVisibleProperty

DependencyProperty

Identifies the IsButtonPartVisible property.

C#
public static readonly DependencyProperty IsButtonPartVisibleProperty

IsCheckedProperty

DependencyProperty

Identifies the IsChecked property.

C#
public static readonly DependencyProperty IsCheckedProperty

IsFocusedProperty

DependencyProperty

Identifies the IsFocused dependency property.

C#
public static readonly DependencyProperty IsFocusedProperty

IsOpenProperty

DependencyProperty

Identifies the IsOpen property.

C#
public static readonly DependencyProperty IsOpenProperty

IsToggleProperty

DependencyProperty

Identifies the IsToggle property.

C#
public static readonly DependencyProperty IsToggleProperty

PopupAnimationProperty

DependencyProperty

Identifies the PopupAnimation property.

C#
public static readonly DependencyProperty PopupAnimationProperty

Identifies the ToggleContentRotateAngle dependency property.

C#
public static readonly DependencyProperty ToggleContentRotateAngleProperty

ToggleCornerRadiusProperty

DependencyProperty

Identifies the ToggleCornerRadius property.

C#
public static readonly DependencyProperty ToggleCornerRadiusProperty

TogglePartStyleProperty

DependencyProperty

Identifies the ToggleButtonStyle dependency property.

C#
public static readonly DependencyProperty TogglePartStyleProperty

UncheckedEvent

RoutedEvent

Occurs when the Button part become unchecked.

C#
public static readonly RoutedEvent UncheckedEvent

Properties

Gets or sets whether the popup opens when mouse hovers for pointed milliseconds Value of zero means no auto open. This is a dependency property.

C#
[Browsable(false)]
public TimeSpan AutoOpenDelay { get; set; }

ButtonCornerRadius

CornerRadius

Gets or sets the ButtonCornerRadius dependency property.

C#
public CornerRadius ButtonCornerRadius { get; set; }

Gets or sets the style for the Button used by the SplitButton.

C#
public Style ButtonPartStyle { get; set; }

Gets or sets whether the popup closes when the Escape key toggles. This is a dependency property.

C#
public bool CloseOnEscape { get; set; }

Gets or sets whether the Popup should be closed when the user clicks on the DropDownContent. The closing is executed on MouseLeftButtonUp event of the Popup. This is a dependency property.

C#
public bool CloseOnPopupMouseLeftButtonUp { get; set; }

Gets the command that will be executed when the command source is invoked. This is a dependency property.

C#
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Represents a user defined data value that can be passed to the command when it is executed. This is a dependency property.

C#
public object CommandParameter { get; set; }

CommandTarget

IInputElement

The object that the command is being executed on. This is a dependency property.

C#
public IInputElement CommandTarget { get; set; }

CornerRadius

CornerRadius

Gets or sets a value that represents the degree to which the corners of the control are rounded. This is a dependency property.

C#
public CornerRadius CornerRadius { get; set; }

Gets or sets the position of the drop down indicator. This is a dependency property.

C#
public DropDownButtonPosition DropDownButtonPosition { get; set; }

Gets or sets a content to popup. This is a dependency property.

C#
public object DropDownContent { get; set; }

Gets or sets the template used to display the drop-down content of the button. This is a dependency property.

C#
public DataTemplate DropDownContentTemplate { get; set; }

Gets or sets the template used to display the drop-down content of the button. This is a dependency property.

C#
public DataTemplateSelector DropDownContentTemplateSelector { get; set; }

Gets or sets the Height of the popup. This is a dependency property.

C#
public double DropDownHeight { get; set; }

Gets or sets whether the DropDown indicator visibility. This is a dependency property.

C#
public Visibility DropDownIndicatorVisibility { get; set; }

Gets or sets the MaxHeight of the popup. This is a dependency property.

C#
public double DropDownMaxHeight { get; set; }

Gets or sets the MaxWidth of the popup. This is a dependency property.

C#
public double DropDownMaxWidth { get; set; }

DropDownPlacement

PlacementMode

Gets or sets the position of the popup. This is a dependency property.

C#
public PlacementMode DropDownPlacement { get; set; }

Gets or sets the Width of the popup. This is a dependency property.

C#
public double DropDownWidth { get; set; }

Sets the visual appearance of the chrome not to render in Normal mode.

C#
[Browsable(false)]
public bool IsBackgroundVisible { get; set; }

Gets or sets whether the button part is visible.

C#
public bool IsButtonPartVisible { get; set; }

Simulates the IsChecked of the ToggleButton. This is a dependency property.

C#
public bool IsChecked { get; set; }

Gets a value that becomes the return value of in derived classes.

C#
protected override bool IsEnabledCore { get; }
Property Value:

true if the element is enabled; otherwise, false.

Gets or sets the IsFocused property.

C#
public bool IsFocused { get; set; }

Gets or sets whether the popup window is expanded. This is a dependency property.

C#
public bool IsOpen { get; set; }

Gets or sets whether the popup supports toggle mode. This is a dependency property.

C#
public bool IsToggle { get; set; }

PopupAnimation

PopupAnimation

Gets or sets the animation that will be used for the popup element.

C#
public PopupAnimation PopupAnimation { get; set; }

ToggleCornerRadius

CornerRadius

Gets or sets the ToggleCornerRadius dependency property.

C#
public CornerRadius ToggleCornerRadius { get; set; }

Gets or sets the style for the ToggleButton used by the SplitButton.

C#
public Style TogglePartStyle { get; set; }

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Gets the ToggleContentRotateAngle property.

C#
public static double GetToggleContentRotateAngle(DependencyObject obj)
Parameters:objDependencyObjectReturns:

double

Raises the event.

C#
protected virtual void OnActivate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .

C#
public override void OnApplyTemplate()

Called when IsChecked property is initialised to true. Raises the Checked events.

C#
protected virtual void OnChecked()

Toggle the IsOpen property and execute the associated Command.

C#
protected virtual void OnClick()

Creates a RadSplitButtonAutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Called when the value of the drop-down content changes.

C#
protected virtual void OnDropDownContentChanged(object oldValue, object newValue)
Parameters:oldValueobject

The previous value of the drop-down content.

newValueobject

The new value of the drop-down content.

Remarks:

This method is invoked whenever the drop-down content is updated. Derived classes can override this method to perform custom logic in response to the content change. The base implementation does nothing.

Called when the DropDownContentTemplate property of a RadSplitButton changes.

C#
protected virtual void OnDropDownContentTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameters:oldValueDataTemplate

The old value of the DropDownContentTemplate property.

newValueDataTemplate

The new value of the DropDownContentTemplate property.

Called when the DropDownContentTemplateSelector property of a RadSplitButton changes.

C#
protected virtual void OnDropDownContentTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameters:oldValueDataTemplateSelector

The old value of the DropDownContentTemplateSelector property.

newValueDataTemplateSelector

The new value of the DropDownContentTemplateSelector property.

Called when [drop down placement changed].

C#
protected virtual void OnDropDownPlacementChanged(PlacementMode newValue, PlacementMode oldValue)
Parameters:newValuePlacementMode

The new value.

oldValuePlacementMode

The old value.

Called on got focus.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the visibility of the button part changes.

C#
protected virtual void OnIsButtonPartVisibleChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The previous visibility state of the button part.

newValuebool

The new visibility state of the button part.

Remarks:

This method is invoked to handle changes in the visibility of the button part. Derived classes can override this method to provide custom behavior when the visibility changes.

Closes the popup on Escape key.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

Called on lost focus.

C#
protected override void OnLostFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

Handles the mouse over and starts the auto open timer.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

Handles the mouse over and stops the auto open timer.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

Restarts the auto open timer.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs
C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

Toggle the IsChecked property and raise the Checked/Unchecked events.

C#
protected virtual void OnToggle()

Called when IsChecked property is initialised to false. Raises the Unchecked events.

C#
protected virtual void OnUnchecked()

Sets the ToggleContentRotateAngle property.

C#
public static void SetToggleContentRotateAngle(DependencyObject obj, double value)
Parameters:objDependencyObjectvaluedouble

Events

Occurs when the action button is clicked.

C#
public event EventHandler<RadRoutedEventArgs> Activate

Checked

RoutedEventHandler

Occurs when the action button is checked.

C#
public event RoutedEventHandler Checked

Click

RoutedEventHandler

Occurs when the action button is clicked.

C#
public event RoutedEventHandler Click

DropDownClosed

RoutedEventHandler

Occurs when the Popup closed.

C#
public event RoutedEventHandler DropDownClosed

DropDownOpened

RoutedEventHandler

Occurs when the Popup opened.

C#
public event RoutedEventHandler DropDownOpened

DropDownOpening

RoutedEventHandler

Occurs when the Popup will be opened. If the event handler set True for the Handled property then the Popup doesn't open.

C#
public event RoutedEventHandler DropDownOpening

Unchecked

RoutedEventHandler

Occurs when the action button is unchecked.

C#
public event RoutedEventHandler Unchecked
In this article
DefinitionConstructorsRadSplitButton()FieldsActivateEventAutoOpenDelayPropertyButtonCornerRadiusPropertyButtonPartStylePropertyCheckedEventClickEventCloseOnEscapePropertyCloseOnPopupMouseLeftButtonUpPropertyCommandParameterPropertyCommandPropertyCommandTargetPropertyCornerRadiusPropertyDropDownButtonPositionPropertyDropDownClosedEventDropDownContentPropertyDropDownContentTemplatePropertyDropDownContentTemplateSelectorPropertyDropDownHeightPropertyDropDownIndicatorVisibilityPropertyDropDownMaxHeightPropertyDropDownMaxWidthPropertyDropDownOpenedEventDropDownOpeningEventDropDownPlacementPropertyDropDownWidthPropertyIsBackgroundVisiblePropertyIsButtonPartVisiblePropertyIsCheckedPropertyIsFocusedPropertyIsOpenPropertyIsTogglePropertyPopupAnimationPropertyToggleContentRotateAnglePropertyToggleCornerRadiusPropertyTogglePartStylePropertyUncheckedEventPropertiesAutoOpenDelayButtonCornerRadiusButtonPartStyleCloseOnEscapeCloseOnPopupMouseLeftButtonUpCommandCommandParameterCommandTargetCornerRadiusDropDownButtonPositionDropDownContentDropDownContentTemplateDropDownContentTemplateSelectorDropDownHeightDropDownIndicatorVisibilityDropDownMaxHeightDropDownMaxWidthDropDownPlacementDropDownWidthIsBackgroundVisibleIsButtonPartVisibleIsCheckedIsEnabledCoreIsFocusedIsOpenIsTogglePopupAnimationToggleCornerRadiusTogglePartStyleMethodsDispose()GetToggleContentRotateAngle(DependencyObject)OnActivate()OnApplyTemplate()OnChecked()OnClick()OnCreateAutomationPeer()OnDropDownContentChanged(object, object)OnDropDownContentTemplateChanged(DataTemplate, DataTemplate)OnDropDownContentTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)OnDropDownPlacementChanged(PlacementMode, PlacementMode)OnGotFocus(RoutedEventArgs)OnInitialized(EventArgs)OnIsButtonPartVisibleChanged(bool, bool)OnKeyDown(KeyEventArgs)OnLostFocus(RoutedEventArgs)OnMouseEnter(MouseEventArgs)OnMouseLeave(MouseEventArgs)OnMouseMove(MouseEventArgs)OnMouseWheel(MouseWheelEventArgs)OnToggle()OnUnchecked()SetToggleContentRotateAngle(DependencyObject, double)EventsActivateCheckedClickDropDownClosedDropDownOpenedDropDownOpeningUnchecked
Not finding the help you need?
Contact Support