Class
RadButtonGroupItem

The RadButtonGroupItem class represents an item in a button group container, providing functionality to manage its visual states based on its position within the parent collection. This class inherits from ContentControl and includes members for initializing its style, applying templates, and managing visual states. It defines two visual states, "FirstContainer" and "DefaultContainer," which determine the appearance of the control based on whether the item is the first container in its collection. The class also provides a method to reset the theme and manage state transitions when visual states change.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

cs-api-definition
public class RadButtonGroupItem : ContentControl

Inheritance: objectRadButtonGroupItem

Constructors

RadButtonGroupItem()

Initializes a new instance of the RadButtonGroupItem class.

Declaration

cs-api-definition
public RadButtonGroupItem()

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()