ClassRadRibbonContextualGroup
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
RadRibbonContextualGroup()
Initializes a new instance of the RadRibbonContextualGroup class.
Declaration
public RadRibbonContextualGroup()
Fields
ColorProperty
Identifies the Color property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
DependencyProperty
GroupNameProperty
Identifies the GroupName attached property.
Declaration
public static readonly DependencyProperty GroupNameProperty
Field Value
DependencyProperty
HeaderAlignmentProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty HeaderAlignmentProperty
Field Value
DependencyProperty
HeaderProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
DependencyProperty
HeaderTemplateProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
DependencyProperty
IsActiveChangedEvent
Identifies the IsActive routed event.
Declaration
public static readonly RoutedEvent IsActiveChangedEvent
Field Value
RoutedEvent
IsActiveProperty
Identifies the IsActive property.
Declaration
public static readonly DependencyProperty IsActiveProperty
Field Value
DependencyProperty
SelectFirstTabOnActivationProperty
Identifies the SelectFirstTabOnActivation property.
Declaration
public static readonly DependencyProperty SelectFirstTabOnActivationProperty
Field Value
DependencyProperty
Properties
Color
Gets or sets the base color used for the tabs header and content background brush.
Declaration
public Brush Color { get; set; }
Property Value
Brush
Header
Represents the header of the contextual group.
HeaderAlignment
Represents the header's alignment of the contextual group.
Declaration
public HorizontalAlignment HeaderAlignment { get; set; }
Property Value
HorizontalAlignment
HeaderTemplate
Represents the header's template of the contextual group.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
DataTemplate
IsActive
Gets or sets whether the group is active (visible) or not.
SelectFirstTabOnActivation
Gets or sets whether the first contextual tab should be selected on activation of the group.
Declaration
public bool SelectFirstTabOnActivation { get; set; }
Property Value
Methods
ArrangeOverride(Size)
Called to arrange and size the content of a Control object.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
The computed size that is used to arrange the content.
Returns
Size
The size of the control.
GetGroupName(DependencyObject)
Gets the value of the GroupName property.
Declaration
public static string GetGroupName(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
MeasureOverride(Size)
Called when the control is measured.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
Returns
Size
OnApplyTemplate()
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().
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates a ContextualGroupAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
A new instance of the ContextualGroupAutomationPeer.
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.
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called when the ContextualGroup was clicked.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
SetGroupName(DependencyObject, string)
Sets a value for the GroupName property.
Declaration
public static void SetGroupName(DependencyObject obj, string value)
Parameters
obj
DependencyObject
value
Events
IsActiveChanged
Occurs when contextual group IsActive property has changed.
Declaration
public event EventHandler<RadRoutedEventArgs> IsActiveChanged
Event Value