In This Article

RibbonTabHeaderItemsControl Class

Represents an System.Windows.Controls.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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage, IPopupAnchor
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl Object
Implements:
IPopupAnchor

Constructors

RibbonTabHeaderItemsControl()

Initializes a new instance of the RibbonTabHeaderItemsControl class.

public RibbonTabHeaderItemsControl()

Properties

IsMinimizedPopupOpen

Gets or sets whether the minimized popup is currently open.

public bool IsMinimizedPopupOpen { get; set; }

Property Value

System.Boolean:

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

IsTabContentVisible

Gets or sets whether tab content is visible.

public bool IsTabContentVisible { get; set; }

Property Value

System.Boolean:

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

MinimizedPopupBackground

Gets or sets the System.Windows.Media.Brush for the minimized popup's background.

public Brush MinimizedPopupBackground { get; set; }

Property Value

System.Windows.Media.Brush:

The System.Windows.Media.Brush for the minimized popup's background.

MinimizedPopupBorderBrush

Gets or sets the System.Windows.Media.Brush for the minimized popup's border.

public Brush MinimizedPopupBorderBrush { get; set; }

Property Value

System.Windows.Media.Brush:

The System.Windows.Media.Brush for the minimized popup's border.

MinimizedPopupBorderThickness

Gets or sets the System.Windows.Thickness of the minimized popup's border.

public Thickness MinimizedPopupBorderThickness { get; set; }

Property Value

System.Windows.Thickness:

The System.Windows.Thickness of the minimized popup's border.

MinimizedPopupContent

Gets or sets the content in the minimized popup.

public object MinimizedPopupContent { get; set; }

Property Value

System.Object:

The content in the minimized popup.

MinimizedPopupCornerRadius

Gets or sets the System.Windows.CornerRadius of the minimized popup's border.

public CornerRadius MinimizedPopupCornerRadius { get; set; }

Property Value

System.Windows.CornerRadius:

The System.Windows.CornerRadius of the minimized popup's border.

MinimizedPopupForeground

Gets or sets the System.Windows.Media.Brush for the minimized popup's foreground.

public Brush MinimizedPopupForeground { get; set; }

Property Value

System.Windows.Media.Brush:

The System.Windows.Media.Brush for the minimized popup's foreground.

MinimizedPopupPadding

Gets or sets the System.Windows.Thickness of the minimized popup's padding.

public Thickness MinimizedPopupPadding { get; set; }

Property Value

System.Windows.Thickness:

The System.Windows.Thickness of the minimized popup's padding.

Methods

ClearContainerForItemOverride(DependencyObject, Object)

When overridden in a derived class, undoes the effects of the System.Windows.Controls.ItemsControl.PrepareContainerForItemOverride(System.Windows.DependencyObject, System.Object) method.

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

The container element.

item System.Object

The item.

GetContainerForItemOverride()

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

protected override DependencyObject GetContainerForItemOverride()

Returns

System.Windows.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 System.Windows.DependencyObject

The object from which the property value is read.

Returns

System.Boolean:

The object's value.

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 System.Object

The item to check.

Returns

System.Boolean:

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 System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

The type-specific System.Windows.Automation.Peers.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 System.Windows.Input.MouseButtonEventArgs

The System.Windows.Input.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 System.Windows.DependencyObject

Element used to display the specified item.

item System.Object

Specified item.

SetIsTabContentVisible(DependencyObject, Boolean)

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

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

The object to which the attached property is written.

value System.Boolean

The value to set.

ToString()

Provides a string representation of the System.Windows.Controls.ItemsControl object.

public override string ToString()

Returns

System.String:

The string representation of the object.

Explicit Interface Implementations

IPopupAnchor.IsKeyboardFocusWithinPopup

Gets whether keyboard focus is within the child popup.

bool IPopupAnchor.IsKeyboardFocusWithinPopup { get; }

Returns

System.Boolean:

true if keyboard focus is within the child popup; otherwise, false.

IPopupAnchor.IsPopupOpen

Gets or sets whether a child popup is open.

bool IPopupAnchor.IsPopupOpen { get; set; }

Returns

System.Boolean:

true if the a child popup is open; otherwise, false.

IPopupAnchor.PopupChild

Gets the child element within the popup.

UIElement IPopupAnchor.PopupChild { get; }

Returns

System.Windows.UIElement:

The child element within the popup.

IPopupAnchor.PopupMenu

Gets the popup menu displayed by the popup anchor.

ContextMenu IPopupAnchor.PopupMenu { get; }

Returns

System.Windows.Controls.ContextMenu:

The popup menu displayed by the popup anchor.

IPopupAnchor.PopupStaysOpen

Gets whether the popup stays open, even when the popup loses focus, until explicitly closed.

bool IPopupAnchor.PopupStaysOpen { get; }

Returns

System.Boolean:

true if the popup stays open, even when the popup loses focus, until explicitly closed.

IPopupAnchor.SupportsAltDownToOpen

Gets whether the element supports pressing Alt+Down to open the popup.

bool IPopupAnchor.SupportsAltDownToOpen { get; }

Returns

System.Boolean:

true if the element supports pressing Alt+Down to open the popup; otherwise, false.

IPopupAnchor.WasPopupOpenedWithKeyboard

Gets or sets whether the child popup was opened via the keyboard.

bool IPopupAnchor.WasPopupOpenedWithKeyboard { get; set; }

Returns

System.Boolean:

true if the child popup was opened via the keyboard; otherwise, false.

Fields

IsMinimizedPopupOpenProperty

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

public static readonly DependencyProperty IsMinimizedPopupOpenProperty

IsTabContentVisibleProperty

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

public static readonly DependencyProperty IsTabContentVisibleProperty

MinimizedPopupBackgroundProperty

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

public static readonly DependencyProperty MinimizedPopupBackgroundProperty

MinimizedPopupBorderBrushProperty

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

public static readonly DependencyProperty MinimizedPopupBorderBrushProperty

MinimizedPopupBorderThicknessProperty

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

public static readonly DependencyProperty MinimizedPopupBorderThicknessProperty

MinimizedPopupContentProperty

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

public static readonly DependencyProperty MinimizedPopupContentProperty

MinimizedPopupCornerRadiusProperty

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

public static readonly DependencyProperty MinimizedPopupCornerRadiusProperty

MinimizedPopupForegroundProperty

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

public static readonly DependencyProperty MinimizedPopupForegroundProperty

MinimizedPopupPaddingProperty

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

public static readonly DependencyProperty MinimizedPopupPaddingProperty

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods