Represents a contextual group in a RadRibbonView control, which is used to group related ribbon tabs and visually distinguish them with a unique color and header. Contextual groups are typically used to display tabs that are relevant only in specific contexts or workflows.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.RibbonView.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadRibbonContextualGroup : Control
Inheritance: objectRadRibbonContextualGroup
Constructors
Initializes a new instance of the RadRibbonContextualGroup class.
public RadRibbonContextualGroup()
Fields
ColorProperty
DependencyProperty
Identifies the Color property.
public static readonly DependencyProperty ColorProperty
GroupNameProperty
DependencyProperty
Identifies the GroupName attached property.
public static readonly DependencyProperty GroupNameProperty
HeaderAlignmentProperty
DependencyProperty
Identifies the Header property.
public static readonly DependencyProperty HeaderAlignmentProperty
HeaderProperty
DependencyProperty
Identifies the Header property.
public static readonly DependencyProperty HeaderProperty
HeaderTemplateProperty
DependencyProperty
Identifies the Header property.
public static readonly DependencyProperty HeaderTemplateProperty
IsActiveChangedEvent
RoutedEvent
Identifies the IsActive routed event.
public static readonly RoutedEvent IsActiveChangedEvent
IsActiveProperty
DependencyProperty
Identifies the IsActive property.
public static readonly DependencyProperty IsActiveProperty
SelectFirstTabOnActivationProperty
DependencyProperty
Identifies the SelectFirstTabOnActivation property.
public static readonly DependencyProperty SelectFirstTabOnActivationProperty
Properties
Color
Brush
Gets or sets the base color used for the tabs header and content background brush.
public Brush Color { get; set; }
HeaderAlignment
HorizontalAlignment
Represents the header's alignment of the contextual group.
public HorizontalAlignment HeaderAlignment { get; set; }
HeaderTemplate
DataTemplate
Represents the header's template of the contextual group.
public DataTemplate HeaderTemplate { get; set; }
Gets or sets whether the group is active (visible) or not.
public bool IsActive { get; set; }
Gets or sets whether the first contextual tab should be selected on activation of the group.
public bool SelectFirstTabOnActivation { get; set; }
Methods
Called to arrange and size the content of a Control object.
protected override Size ArrangeOverride(Size finalSize)
The computed size that is used to arrange the content.
Returns:Size
The size of the control.
Gets the value of the GroupName property.
public static string GetGroupName(DependencyObject obj)
Called when the control is measured.
protected override Size MeasureOverride(Size availableSize)
Size
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Creates a ContextualGroupAutomationPeer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
A new instance of the ContextualGroupAutomationPeer.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the ContextualGroup was clicked.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Sets a value for the GroupName property.
public static void SetGroupName(DependencyObject obj, string value)
Events
Occurs when contextual group IsActive property has changed.
public event EventHandler<RadRoutedEventArgs> IsActiveChanged