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