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

Represents a button group control that can contain multiple buttons, allowing for grouped actions in a navigation interface. This control is designed to facilitate the organization of buttons, providing a consistent layout and styling. It can be themed and supports both WPF and non-WPF frameworks, adapting its behavior accordingly. The RadButtonGroup control automatically adjusts button sizes based on the items it contains and provides the ability to reset themes, apply templates, and manage item containers efficiently.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadButtonGroup : ItemsControl

Inheritance: objectRadButtonGroup

Constructors

Initializes a new instance of the RadButtonGroup class.

C#
public RadButtonGroup()

Methods

Creates or identifies the element used to display a specified item.

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Determines if the specified item is (or is eligible to be) its own container.

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

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 value of the property changes.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

A NotifyCollectionChangedEventArgs that contains the event data.

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Resets the theme.

C#
public void ResetTheme()