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:
trueif the minimized popup is currently open; otherwise,false. The default value isfalse.
IsTabContentVisible
Indicates whether tab content is visible.
public bool IsTabContentVisible { get; set; }
Property Value
- bool:
trueif tab content is visible; otherwise,false. The default value istrue.
MinimizedPopupBackground
The Brush for the minimized popup's background.
MinimizedPopupBorderBrush
The Brush for the minimized popup's border.
MinimizedPopupBorderThickness
The Thickness of the minimized popup's border.
MinimizedPopupContent
The content in the minimized popup.
MinimizedPopupCornerRadius
The CornerRadius of the minimized popup's border.
MinimizedPopupForeground
The Brush for the minimized popup's foreground.
MinimizedPopupPadding
The Thickness of the minimized popup's padding.
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
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:
trueif 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.
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