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 |
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.
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
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
- ItemsControlBase.ClickEvent
- ItemsControlBase.PreviewClickEvent
- ItemsControlBase.ScreenTipClosingEvent
- ItemsControlBase.ScreenTipOpeningEvent
- ItemsControlBase.CommandProperty
- ItemsControlBase.CommandParameterProperty
- ItemsControlBase.CommandTargetProperty
- ItemsControlBase.ContextProperty
- ItemsControlBase.HasImageProperty
- ItemsControlBase.HasLabelProperty
- ItemsControlBase.IdProperty
- ItemsControlBase.ImageSourceLargeProperty
- ItemsControlBase.ImageSourceSmallProperty
- ItemsControlBase.IsHighlightedProperty
- ItemsControlBase.KeyTipAccessTextProperty
- ItemsControlBase.LabelProperty
- ItemsControlBase.ScreenTipDescriptionProperty
- ItemsControlBase.ScreenTipFooterProperty
- ItemsControlBase.ScreenTipHeaderProperty
- ItemsControlBase.ScreenTipHelpUriProperty
- ItemsControlBase.ScreenTipImageSourceProperty
- ItemsControlBase.VariantSizeProperty
- ItemsControlBase.CoerceCommandParameter(DependencyObject, object)
- ItemsControlBase.OnClick(ExecuteRoutedEventArgs)
- ItemsControlBase.OnCommandChanged(ICommand, ICommand)
- ItemsControlBase.OnContextChanged(ControlContext, ControlContext)
- ItemsControlBase.OnCreateAutomationPeer()
- ItemsControlBase.OnKeyTipAccessed(string)
- ItemsControlBase.OnPreviewClick(ExecuteRoutedEventArgs)
- ItemsControlBase.OnPropertyChanged(DependencyPropertyChangedEventArgs)
- ItemsControlBase.OnScreenTipClosing(RoutedEventArgs)
- ItemsControlBase.OnScreenTipOpening(RoutedEventArgs)
- ItemsControlBase.OnVariantSizeChanged(VariantSize, VariantSize)
- ItemsControlBase.RaiseClickEvent(ExecuteRoutedEventArgs)
- ItemsControlBase.CanUpdateCanExecuteWhenHidden
- ItemsControlBase.Command
- ItemsControlBase.CommandParameter
- ItemsControlBase.CommandTarget
- ItemsControlBase.Context
- ItemsControlBase.HasImage
- ItemsControlBase.HasLabel
- ItemsControlBase.Id
- ItemsControlBase.ImageSourceLarge
- ItemsControlBase.ImageSourceSmall
- ItemsControlBase.IsHighlighted
- ItemsControlBase.KeyTipAccessText
- ItemsControlBase.Label
- ItemsControlBase.ScreenTipDescription
- ItemsControlBase.ScreenTipFooter
- ItemsControlBase.ScreenTipHeader
- ItemsControlBase.ScreenTipHelpUri
- ItemsControlBase.ScreenTipImageSource
- ItemsControlBase.VariantSize
- ItemsControlBase.Click
- ItemsControlBase.PreviewClick
- ItemsControlBase.ScreenTipClosing
- ItemsControlBase.ScreenTipOpening