Represents a ribbon bar button group. You can group buttons that are logically related, for example, bold, italic, and underline buttons in a text editor application.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(false)]
public class RadRibbonBarButtonGroup : CollapsibleElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IItemsElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemCollapsibleElementRadRibbonBarButtonGroup...
Implements:
Inherited Members
Constructors
public RadRibbonBarButtonGroup()
Fields
Stores the selected state on child items in this group.
public static RadProperty IsSelectedProperty
Identifies the routed event raised when a child item becomes deselected.
public static RoutedEvent OnRoutedButtonDeselected
Identifies the routed event raised when a child item becomes selected.
public static RoutedEvent OnRoutedButtonSelected
Controls the direction in which the group's item layout arranges its children.
public static RadProperty OrientationProperty
Properties
Gets the highest collapse-step value supported by a button group.
public override int CollapseMaxSteps { get; }
Overrides:
Gets the collection of items in the button group.
[Browsable(true)]
[RadNewItem("", false, false, false)]
public RadItemOwnerCollection Items { get; }
Implements:
Gets or sets the minimum size constraint for the group.
public override Size MinSize { get; set; }
Overrides:
When this group is added to a RadRibbonBarGroup or another RadRibbonBarButtonGroup, its parent applies a minimum size of 22 by 22.
Gets or sets the orientation of the elements inside the button group: Horizontal or Vertical.
[Browsable(true)]
public Orientation Orientation { get; set; }
Gets or sets a value indicating whether the back color is shown.
[Browsable(true)]
public bool ShowBackColor { get; set; }
Gets or sets a value indicating whether the border is shown.
[Browsable(false)]
public bool ShowBorder { get; set; }
Methods
Determines whether the group's children can reach the requested expansion step.
Creates the item layout panel and its themed fill and border elements.
protected override void CreateChildElements()
Overrides:
Initializes the rounded group shape and disables vertical stretching.
protected override void InitializeFields()
Overrides:
Fires ItemChanged event.
public void ItemChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
Selects the clicked item unless it is already selected or rejected by CanSelectButton(RadItem).
Applies button shape and border adjustments after the group enters the element tree.
protected override void OnLoaded()
Overrides:
Propagates orientation changes to the group's internal layout and separators.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property change information.
Overrides:
Refreshes the items nested in the argument.
Updates each direct button's end-of-group state and ensures it uses the button-group state manager.
protected virtual void ResetItemsIsAtUnevenIndexProperty()
public void SetIsSelected(RadElement childElement, bool value)