Class RadSplitButton
Provides a menu-like interface within a button.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadSplitButton : RadDropDownButton, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadSplitButton()
Initializes a new instance of the RadSplitButton class. Creates a split button control with default settings and behavior.
Declaration
public RadSplitButton()
Properties
DefaultItem
Gets or sets the default item that appears on the main button portion of the split button. This item's action is executed when the main button area is clicked.
Declaration
public RadItem DefaultItem { get; set; }
Property Value
RadItem
The RadItem that serves as the default action, or null if no default item is set. |
DefaultSize
Gets the default size of the RadSplitButton control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
A System.Drawing.Size representing the default control dimensions. |
Overrides
DropDownButtonElement
Gets the RadSplitButtonElement that represents the visual element of this split button control. This element contains the visual styling and split button behavior logic.
Declaration
public RadSplitButtonElement DropDownButtonElement { get; }
Property Value
RadSplitButtonElement
A RadSplitButtonElement that represents the button's visual element. |
Methods
ControlDefinesThemeForElement(RadElement)
Determines whether the control defines theme settings for the specified element. This method is used by the theming infrastructure to apply appropriate themes to split button elements.
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement
element
The element to check for theme definition. |
Returns
System.Boolean
true if this control defines the theme for the element; otherwise, false. |
Overrides
CreateButtonElement()
Create main button element that is specific for RadSplitButton.
Declaration
protected override RadDropDownButtonElement CreateButtonElement()
Returns
RadDropDownButtonElement
The element that encapsulates the functionality of RadSplitButton |
Overrides
OnDefaultItemChanged(EventArgs)
Raises the DefaultItemChanged event.
Declaration
protected virtual void OnDefaultItemChanged(EventArgs e)
Parameters
System.EventArgs
e
An System.EventArgs that contains the event data. |
Events
DefaultItemChanged
Occurs when the default item of the split button changes. This event is raised whenever a new default item is assigned to the split button.
Declaration
public event EventHandler DefaultItemChanged
Event Type
System.EventHandler
|