Class ContextTabGroup
Represents a ContextTabGroup control.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ContextTabGroup : Control, IDisposable
Remarks
ContextTabGroup class describes the RibbonTab context group used for Contextual Tabs Ribbon feature.
Examples
This example shows how to create a ContextTabGroup in XAML.
<ribbon:ContextTabGroup>
<ribbon:RibbonTab Caption="ContextTab"/>
</ribbon:ContextTabGroup>
This example shows how to create a ContextTabGroup in C#.
ContextTabGroup contextTabGroup = new ContextTabGroup();
contextTabGroup.Label = "New Context Group " + Ribbon.ContextTabGroups.Count;
contextTabGroup.BackColor = Colors.Aqua;
RibbonTab tab = new RibbonTab();
tab.Caption = "New tab";
contextTabGroup.RibbonTabs.Add(tab);
Ribbon.ContextTabGroups.Add(contextTabGroup);
contextTabGroup.IsGroupVisible = true;
Constructors
ContextTabGroup()
Initializes a new instance of the ContextTabGroup class.
Declaration
public ContextTabGroup()
Fields
BackColorProperty
Gets or sets the background color of the context tab group. This is a dependency property.
Declaration
public static readonly DependencyProperty BackColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsGroupVisibleChangedEvent
Event is raised when IsGroupVisible property changes.
Declaration
public static readonly RoutedEvent IsGroupVisibleChangedEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
IsGroupVisibleProperty
Gets or sets whether context tab group is visible. This is a dependency property.
Declaration
public static readonly DependencyProperty IsGroupVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ItemContainerStyle dependency property.
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ItemsSource dependency property.
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ItemTemplate dependency property.
ItemTemplateSelectorProperty
Identifies the ItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the ItemTemplateSelector dependency property.
LabelProperty
Gets or sets the label of the context tab group. This is a dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RibbonTabsProperty
Gets or sets collection of ribbon tabs. This is a dependency property.
Declaration
public static readonly DependencyProperty RibbonTabsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BackColor
Gets or sets the background color of the context tab group.
Declaration
public Color BackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color | Type: System.Windows.Media.Color Color of the context tab group background. |
IsGroupVisible
Gets or sets a value indicating whether this instance is group visible.
Declaration
public bool IsGroupVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ItemContainerStyle
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Type |
---|
System.Windows.Style |
ItemsSource
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type |
---|
System.Collections.IEnumerable |
ItemTemplate
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
ItemTemplateSelector
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
Label
Gets or sets the label of the context tab group.
Declaration
public string Label { get; set; }
Property Value
Type |
---|
System.String |
RibbonTabs
Gets or sets the collection of RibbonTabs.
Declaration
public RibbonTabCollection RibbonTabs { get; set; }
Property Value
Type | Description |
---|---|
RibbonTabCollection | Type: RibbonTabCollection Collection of RibbonTab |
See Also
Methods
Activate()
Activates this instance.
Declaration
public bool Activate()
Returns
Type | Description |
---|---|
System.Boolean | Returns the active tab |
Dispose()
Declaration
public void Dispose()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |
OnInitialized(EventArgs)
Invoked when Initialized event is raised.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The instance containing the event data. |
OnIsGroupVisibleChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises IsGroupVisibleChanged event.
Declaration
protected virtual void OnIsGroupVisibleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
Events
IsGroupVisibleChanged
Event that is raised when IsGroupVisible property is changed.
Declaration
public event PropertyChangedCallback IsGroupVisibleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |