In This Article

ContextualTabGroup Class

Represents a contextual tab group of Tab controls.

public class ContextualTabGroup : ItemsControlBase, IKeyTipTarget, ILogicalParent, IVariantControl
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl ItemsControlBase object
Implements:
IKeyTipTarget ILogicalParent IVariantControl

Remarks

For detailed documentation on this control's features and how to use them, please see the ContextualTabGroup documentation topic.

Constructors

ContextualTabGroup()

Initializes an instance of the class.

public ContextualTabGroup()

Properties

Color

Gets or sets the base color for the contextual tab group's gradient effects.

public Color Color { get; set; }

Property Value

Color:

The base color for the contextual tab group's gradient effects.

IsActive

Gets or sets whether the contextual tab group is currently active (able to be used if the size of the ribbon permits).

public bool IsActive { get; set; }

Property Value

bool:

true if the contextual tab group is currently active (able to be used if the size of the ribbon permits); otherwise, false.

Methods

OnIsActiveChanged(BooleanPropertyChangedRoutedEventArgs)

Invoked when an unhandled IsActiveChanged attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected virtual void OnIsActiveChanged(BooleanPropertyChangedRoutedEventArgs e)
Parameter Type Description
e BooleanPropertyChangedRoutedEventArgs

A BooleanPropertyChangedRoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Invoked when the Items property changes.

protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter Type Description
e NotifyCollectionChangedEventArgs

A NotifyCollectionChangedEventArgs that contains the event data.

OnValidateItems(IList)

Invoked when the specified IList of items needs to be validated for inclusion in this ItemsControl.

protected override void OnValidateItems(IList items)
Parameter Type Description
items IList

The IList of items to validate.

ToString()

Creates and returns a string representation of the current object.

public override string ToString()

Returns

string:

A string representation of the current object.

UpdateCanExecute()

Updates whether the command can execute.

protected override void UpdateCanExecute()

Events

IsActiveChanged

Occurs after the IsActive property has changed.

public event EventHandler<BooleanPropertyChangedRoutedEventArgs> IsActiveChanged

Event Type

EventHandler<BooleanPropertyChangedRoutedEventArgs>

Fields

ColorProperty

Identifies the Color dependency property. This field is read-only.

public static readonly DependencyProperty ColorProperty

IsActiveChangedEvent

Identifies the IsActiveChanged routed event. This field is read-only.

public static readonly RoutedEvent IsActiveChangedEvent

IsActiveProperty

Identifies the IsActive dependency property. This field is read-only.

public static readonly DependencyProperty IsActiveProperty

Inherited Members