ClassRadRibbonSplitButton
Represents a split button control specifically designed for use within a ribbon interface. This class extends the functionality of the RadSplitButton to include features typical of a ribbon button, such as multi-line text support and automatic resizing based on the available space. The RadRibbonSplitButton includes properties for managing text, images (both small and large), and size, allowing for flexible customization. The control also provides functionality to manage drop-down popups and their behavior during user interactions, as well as various template parts for layout customization. The split button can display two rows of text and adjusts its visual appearance and behavior according to the current state and size. This control effectively enhances the user experience in ribbon-based applications by providing a visually appealing and easy-to-use button interface.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.RibbonView.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadRibbonSplitButton : RadSplitButton, ICommandSource, IDisposable, IRibbonButton, IVariantControl
Inheritance: objectRadSplitButtonRadRibbonSplitButton
Implements:
Inherited Members
Constructors
RadRibbonSplitButton()
Initializes a new instance of the RadRibbonSplitButton class.
Declaration
public RadRibbonSplitButton()
Fields
CollapseToMediumProperty
Identifies the CollapseToMedium property.
Declaration
public static readonly DependencyProperty CollapseToMediumProperty
Field Value
DependencyProperty
CollapseToSmallProperty
Identifies the CollapseToSmall property.
Declaration
public static readonly DependencyProperty CollapseToSmallProperty
Field Value
DependencyProperty
CurrentSizeProperty
Identifies the CurrentSize property.
Declaration
public static readonly DependencyProperty CurrentSizeProperty
Field Value
DependencyProperty
IsAutoSizeProperty
Identifies the IsAutoSize property.
Declaration
public static readonly DependencyProperty IsAutoSizeProperty
Field Value
DependencyProperty
IsTextInMiddleButtonProperty
Identifies the IsTextInMiddleButton property.
Declaration
public static readonly DependencyProperty IsTextInMiddleButtonProperty
Field Value
DependencyProperty
KeepOpenProperty
Identifies the KeepOpen property.
Declaration
public static readonly DependencyProperty KeepOpenProperty
Field Value
DependencyProperty
LargeImageProperty
Identifies the LargeImage property.
Declaration
public static readonly DependencyProperty LargeImageProperty
Field Value
DependencyProperty
SizeProperty
Identifies the Size property.
Declaration
public static readonly DependencyProperty SizeProperty
Field Value
DependencyProperty
SmallImageProperty
Identifies the SmallImage property.
Declaration
public static readonly DependencyProperty SmallImageProperty
Field Value
DependencyProperty
SplitTextProperty
Identifies the SplitText property.
Declaration
public static readonly DependencyProperty SplitTextProperty
Field Value
DependencyProperty
TextProperty
Identifies the Text property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
DependencyProperty
TextRow1Property
Identifies the TextRow1 property.
Declaration
public static readonly DependencyProperty TextRow1Property
Field Value
DependencyProperty
TextRow2Property
Identifies the TextRow2 property.
Declaration
public static readonly DependencyProperty TextRow2Property
Field Value
DependencyProperty
Properties
CollapseToMedium
Get/Set the guidance about button's resize to the Medium size. This is a dependency property.
Declaration
public CollapseThreshold CollapseToMedium { get; set; }
Property Value
Implements
CollapseToSmall
Get/Set the guidance about button's resize to the Small size. This is a dependency property.
Declaration
public CollapseThreshold CollapseToSmall { get; set; }
Property Value
Implements
CurrentSize
Get/Set the current State-size of the button. This is a dependency property.
Declaration
public ButtonSize CurrentSize { get; }
Property Value
Implements
IsAutoSize
Get/Set the permission to resize the Image according to the RibbonView guidance. This is a dependency property.
IsTextInMiddleButton
Get/Set the placement of the text in the Middle-sized button. This is a dependency property.
KeepOpen
Defines the close behavior of the popup window. If True the popup will stays opened regardless its children activity.
LargeImage
Get/Set the LargeImage that is shown in Large button state. This is a dependency property.
Declaration
public ImageSource LargeImage { get; set; }
Property Value
ImageSource
Implements
Size
Get/Set the button initial size. In fact this is the max-size that the button can implement. This is a dependency property.
Declaration
public ButtonSize Size { get; set; }
Property Value
Implements
SmallImage
Get/Set the SmallImage that is shown in Medium and Small button state. This is a dependency property.
Declaration
public ImageSource SmallImage { get; set; }
Property Value
ImageSource
Implements
SplitText
Enable/disable the Text splitting for the Large-sized button. This is a dependency property.
Text
Get/Set the Text label that is shown in Medium and Large button state. This is a dependency property.
TextRow1
Get/Set the Text label that is shown in Medium and Large button state. This is a dependency property.
Methods
HidePopupOnChildItemActivated(object, RoutedEventArgs)
Hides the Popup when one of observed Children is activated.
Declaration
protected void HidePopupOnChildItemActivated(object sender, RoutedEventArgs e)
Parameters
sender
e
RoutedEventArgs
OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call. .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Creates a RadSplitButtonAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnKeyDown(KeyEventArgs)
Called before the event occurs.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
The data for the event.
Overrides
OnPreviewKeyDown(KeyEventArgs)
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
SetVariant(RibbonGroupVariant)
Implements the interface for button resizing in order to follow the resize mechanism of the ribbon group.
Declaration
public void SetVariant(RibbonGroupVariant variant)
Parameters
variant
Implements