In This Article

RibbonTabHeaderItemsControl Class

Represents an ItemsControl containing RibbonTabHeader items.

[TemplatePart(Name = "PART_OverflowPresenter", Type = typeof(OverflowPresenter))]
[TemplatePart(Name = "PART_TabSelectionElement", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "PART_MinimizedPopup", Type = typeof(Popup))]
public class RibbonTabHeaderItemsControl : ItemsControl, IPopupAnchor
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl object
Implements:
IPopupAnchor

Constructors

RibbonTabHeaderItemsControl()

Initializes an instance of the class.

public RibbonTabHeaderItemsControl()

Properties

IsMinimizedPopupOpen

Indicates whether the minimized popup is currently open.

public bool IsMinimizedPopupOpen { get; set; }

Property Value

bool:

true if the minimized popup is currently open; otherwise, false. The default value is false.

IsTabContentVisible

Indicates whether tab content is visible.

public bool IsTabContentVisible { get; set; }

Property Value

bool:

true if tab content is visible; otherwise, false. The default value is true.

MinimizedPopupBackground

The Brush for the minimized popup's background.

public Brush? MinimizedPopupBackground { get; set; }

Property Value

Brush

MinimizedPopupBorderBrush

The Brush for the minimized popup's border.

public Brush? MinimizedPopupBorderBrush { get; set; }

Property Value

Brush

MinimizedPopupBorderThickness

The Thickness of the minimized popup's border.

public Thickness MinimizedPopupBorderThickness { get; set; }

Property Value

Thickness

MinimizedPopupContent

The content in the minimized popup.

public object? MinimizedPopupContent { get; set; }

Property Value

object

MinimizedPopupCornerRadius

The CornerRadius of the minimized popup's border.

public CornerRadius MinimizedPopupCornerRadius { get; set; }

Property Value

CornerRadius

MinimizedPopupForeground

The Brush for the minimized popup's foreground.

public Brush? MinimizedPopupForeground { get; set; }

Property Value

Brush

MinimizedPopupPadding

The Thickness of the minimized popup's padding.

public Thickness MinimizedPopupPadding { get; set; }

Property Value

Thickness

Methods

ClearContainerForItemOverride(DependencyObject, object)

When overridden in a derived class, undoes the effects of the PrepareContainerForItemOverride(DependencyObject, object) method.

protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The container element.

item object

The item.

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject:

The element that is used to display the given item.

GetIsTabContentVisible(DependencyObject)

Gets the value of the IsTabContentVisible attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsTabContentVisible(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item object

The item to check.

Returns

bool:

true if the item is (or is eligible to be) its own container; otherwise, false.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnMouseLeftButtonDown(MouseButtonEventArgs)

Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.

protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameter Type Description
e MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

Element used to display the specified item.

item object

Specified item.

SetIsTabContentVisible(DependencyObject, bool)

Sets the value of the IsTabContentVisible attached property to the specified object.

public static void SetIsTabContentVisible(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Fields

IsMinimizedPopupOpenProperty

Defines the IsMinimizedPopupOpen property.

public static readonly DependencyProperty IsMinimizedPopupOpenProperty

IsTabContentVisibleProperty

Defines the IsTabContentVisible property.

public static readonly DependencyProperty IsTabContentVisibleProperty

MinimizedPopupBackgroundProperty

Defines the MinimizedPopupBackground property.

public static readonly DependencyProperty MinimizedPopupBackgroundProperty

MinimizedPopupBorderBrushProperty

Defines the MinimizedPopupBorderBrush property.

public static readonly DependencyProperty MinimizedPopupBorderBrushProperty

MinimizedPopupBorderThicknessProperty

Defines the MinimizedPopupBorderThickness property.

public static readonly DependencyProperty MinimizedPopupBorderThicknessProperty

MinimizedPopupContentProperty

Defines the MinimizedPopupContent property.

public static readonly DependencyProperty MinimizedPopupContentProperty

MinimizedPopupCornerRadiusProperty

Defines the MinimizedPopupCornerRadius property.

public static readonly DependencyProperty MinimizedPopupCornerRadiusProperty

MinimizedPopupForegroundProperty

Defines the MinimizedPopupForeground property.

public static readonly DependencyProperty MinimizedPopupForegroundProperty

MinimizedPopupPaddingProperty

Defines the MinimizedPopupPadding property.

public static readonly DependencyProperty MinimizedPopupPaddingProperty

Extension Methods