RibbonGroupCollapsedButton Class
Represents a collapsed button control, used when a RibbonGroup is in a collapsed variant size.
[TemplatePart(Name = "PART_PopupContentPresenter", Type = typeof(ContentPresenter))]
public class RibbonGroupCollapsedButton : PopupButton, IPopupAnchor
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl ButtonBase Button PopupButton object
- Implements:
- IPopupAnchor
Constructors
RibbonGroupCollapsedButton()
Initializes an instance of the class.
public RibbonGroupCollapsedButton()
Properties
KeyTipText
The key tip text used to access the control.
[Localizability(LocalizationCategory.Label)]
public string? KeyTipText { get; set; }
Property Value
Label
The text label to display.
[Localizability(LocalizationCategory.Label)]
public string? Label { get; set; }
Property Value
LargeImageSource
The ImageSource for a large image, generally 32x32 size.
public ImageSource? LargeImageSource { get; set; }
Property Value
- ImageSource:
The ImageSource for a large image.
LayoutMode
A RibbonLayoutMode that indicates the current layout mode (Classic vs. Simplified).
public RibbonLayoutMode LayoutMode { get; set; }
Property Value
- RibbonLayoutMode:
A RibbonLayoutMode that indicates the current layout mode. The default value is Classic.
ScreenTipFooter
The screen tip footer content.
ScreenTipHeader
The screen tip header content.
SmallImageSource
The ImageSource for a small image, generally 16x16 size.
public ImageSource? SmallImageSource { get; set; }
Property Value
- ImageSource:
The ImageSource for a small image.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
[Localizability(LocalizationCategory.Title)]
public string? Title { get; set; }
Property Value
- string:
The string title.
UserInterfaceDensity
A UserInterfaceDensity that indicates how compact or spacious the UI should appear.
public UserInterfaceDensity UserInterfaceDensity { get; set; }
Property Value
- UserInterfaceDensity:
A UserInterfaceDensity that indicates how compact or spacious the UI should appear. The default value is Compact.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates an appropriate ButtonAutomationPeer for this control as part of the WPF infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
A ButtonAutomationPeer for this control.
OnKeyTipOpening(KeyTipOpeningEventArgs)
Occurs when the control's key tip is opening.
protected virtual void OnKeyTipOpening(KeyTipOpeningEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyTipOpeningEventArgs | The event data. |
OnPopupOpened(RoutedEventArgs)
Occurs when the IsPopupOpen property changes to true.
protected override void OnPopupOpened(RoutedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | RoutedEventArgs | The |
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.
OnToolTipOpening(ToolTipEventArgs)
Invoked whenever the ToolTipOpening routed event reaches this class in its route. Implement this method to add class handling for this event.
protected override void OnToolTipOpening(ToolTipEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | ToolTipEventArgs | Provides data about the event. |
Fields
KeyTipTextProperty
Defines the KeyTipText property.
public static readonly DependencyProperty KeyTipTextProperty
LabelProperty
Defines the Label property.
public static readonly DependencyProperty LabelProperty
LargeImageSourceProperty
Defines the LargeImageSource property.
public static readonly DependencyProperty LargeImageSourceProperty
LayoutModeProperty
Defines the LayoutMode property.
public static readonly DependencyProperty LayoutModeProperty
ScreenTipFooterProperty
Defines the ScreenTipFooter property.
public static readonly DependencyProperty ScreenTipFooterProperty
ScreenTipHeaderProperty
Defines the ScreenTipHeader property.
public static readonly DependencyProperty ScreenTipHeaderProperty
SmallImageSourceProperty
Defines the SmallImageSource property.
public static readonly DependencyProperty SmallImageSourceProperty
TitleProperty
Defines the Title property.
public static readonly DependencyProperty TitleProperty
UserInterfaceDensityProperty
Defines the UserInterfaceDensity property.
public static readonly DependencyProperty UserInterfaceDensityProperty
Inherited Members
- PopupButton.PopupClosedEvent
- PopupButton.PopupOpenedEvent
- PopupButton.PopupOpeningEvent
- PopupButton.CornerRadiusProperty
- PopupButton.DisplayModeProperty
- PopupButton.HasDropShadowProperty
- PopupButton.IsAutoFocusOnOpenEnabledProperty
- PopupButton.IsPopupOpenProperty
- PopupButton.IsTransparencyModeEnabledProperty
- PopupButton.PopupAllowsTransparencyProperty
- PopupButton.PopupAnimationProperty
- PopupButton.PopupBackgroundProperty
- PopupButton.PopupBorderBrushProperty
- PopupButton.PopupBorderThicknessProperty
- PopupButton.PopupContentProperty
- PopupButton.PopupContentTemplateProperty
- PopupButton.PopupContentTemplateSelectorProperty
- PopupButton.PopupCornerRadiusProperty
- PopupButton.PopupHorizontalOffsetProperty
- PopupButton.PopupIndicatorProperty
- PopupButton.PopupIndicatorTemplateProperty
- PopupButton.PopupIndicatorToolTipProperty
- PopupButton.PopupMenuProperty
- PopupButton.PopupMenuDataContextProperty
- PopupButton.PopupPaddingProperty
- PopupButton.PopupPlacementProperty
- PopupButton.PopupVerticalOffsetProperty
- PopupButton.StaysOpenProperty
- PopupButton.FocusWithin()
- PopupButton.OnClick()
- PopupButton.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PopupButton.OnKeyDown(KeyEventArgs)
- PopupButton.OnKeyUp(KeyEventArgs)
- PopupButton.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PopupButton.OnMouseLeftButtonUp(MouseButtonEventArgs)
- PopupButton.OnMouseWheel(MouseWheelEventArgs)
- PopupButton.OnPopupClosed(RoutedEventArgs)
- PopupButton.OnPopupMenuChanged(ContextMenu, ContextMenu)
- PopupButton.OnPopupOpening(CancelRoutedEventArgs)
- PopupButton.ClosePopupCommand
- PopupButton.CornerRadius
- PopupButton.DisplayMode
- PopupButton.HasDropShadow
- PopupButton.IsAutoFocusOnOpenEnabled
- PopupButton.IsPopupOpen
- PopupButton.IsTransparencyModeEnabled
- PopupButton.LogicalChildren
- PopupButton.Popup
- PopupButton.PopupAllowsTransparency
- PopupButton.PopupAnimation
- PopupButton.PopupBackground
- PopupButton.PopupBorderBrush
- PopupButton.PopupBorderThickness
- PopupButton.PopupContent
- PopupButton.PopupContentTemplate
- PopupButton.PopupContentTemplateSelector
- PopupButton.PopupCornerRadius
- PopupButton.PopupHorizontalOffset
- PopupButton.PopupIndicator
- PopupButton.PopupIndicatorTemplate
- PopupButton.PopupIndicatorToolTip
- PopupButton.PopupMenu
- PopupButton.PopupMenuDataContext
- PopupButton.PopupPadding
- PopupButton.PopupPlacement
- PopupButton.PopupVerticalOffset
- PopupButton.StaysOpen
- PopupButton.PopupClosed
- PopupButton.PopupOpened
- PopupButton.PopupOpening