RibbonApplicationButton Class
Represents an application button (e.g. 'File' tab) control for a ActiproSoftware.Windows.Controls.Bars.RibbonApplicationButton.Ribbon.
public class RibbonApplicationButton : BarPopupButtonBase, IPopupAnchor
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl MenuBase Menu BarPopupButtonBase object
- Implements:
- IPopupAnchor
Constructors
RibbonApplicationButton()
Initializes an instance of the class.
public RibbonApplicationButton()
Properties
Content
The content to display in the button.
ContentFontSize
The font size of the button's content, which is generally its label.
ContentTemplate
The DataTemplate to use for displaying the content.
ContentTemplateSelector
The DataTemplateSelector to use for displaying the content.
public DataTemplateSelector? ContentTemplateSelector { get; set; }
Property Value
HasContent
Indicates whether there is Content available.
public bool HasContent { get; }
Property Value
HasMenuAdditionalContent
Indicates whether there is MenuAdditionalContent available.
public bool HasMenuAdditionalContent { get; }
Property Value
- bool:
trueif there is MenuAdditionalContent available; otherwise,false.
HasMenuFooter
Indicates whether there is a MenuFooter available.
public bool HasMenuFooter { get; }
Property Value
- bool:
trueif there is a MenuFooter available; otherwise,false.
MenuAdditionalContent
The content to display to the right of the menu.
MenuAdditionalContentTemplate
The DataTemplate to use for displaying the menu additional content.
MenuAdditionalContentTemplateSelector
The DataTemplateSelector to use for displaying the menu additional content.
public DataTemplateSelector? MenuAdditionalContentTemplateSelector { get; set; }
Property Value
MenuFooter
The content to display to the footer of the menu.
MenuFooterTemplate
The DataTemplate to use for displaying the menu footer content.
MenuFooterTemplateSelector
The DataTemplateSelector to use for displaying the menu footer content.
public DataTemplateSelector? MenuFooterTemplateSelector { get; set; }
Property Value
Methods
OnContentChanged(object?, object?)
Occurs when the Content property value is changed.
protected virtual void OnContentChanged(object? oldValue, object? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | object | The old value. |
| newValue | object | The new value. |
OnContentTemplateChanged(DataTemplate?, DataTemplate?)
Occurs when the ContentTemplate property value is changed.
protected virtual void OnContentTemplateChanged(DataTemplate? oldValue, DataTemplate? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplate | The old value. |
| newValue | DataTemplate | The new value. |
OnContentTemplateSelectorChanged(DataTemplateSelector?, DataTemplateSelector?)
Occurs when the ContentTemplateSelector property value is changed.
protected virtual void OnContentTemplateSelectorChanged(DataTemplateSelector? oldValue, DataTemplateSelector? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplateSelector | The old value. |
| newValue | DataTemplateSelector | The new value. |
OnCreateAutomationPeer()
Provides an appropriate MenuAutomationPeer implementation for this control, as part of the WPF automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
OnIndicatorAreaMouseDown(MouseButtonEventArgs)
Occurs when a pointer button is pressed over the indicator area.
protected override void OnIndicatorAreaMouseDown(MouseButtonEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseButtonEventArgs | The MouseButtonEventArgs containing data related to this event. |
OnKeyDown(KeyEventArgs)
Responds to the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | A KeyEventArgs that contains the event data. |
OnKeyTipInvoked(KeyTipInvokedEventArgs)
Occurs when the control's key tip is invoked.
protected override void OnKeyTipInvoked(KeyTipInvokedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyTipInvokedEventArgs | The KeyTipInvokedEventArgs containing data related to this event. |
OnKeyTipOpening(KeyTipOpeningEventArgs)
Occurs when the control's key tip is opening.
protected override void OnKeyTipOpening(KeyTipOpeningEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyTipOpeningEventArgs | The KeyTipOpeningEventArgs containing data related to this event. |
OnMenuAdditionalContentChanged(object?, object?)
Occurs when the MenuAdditionalContent property value is changed.
protected virtual void OnMenuAdditionalContentChanged(object? oldValue, object? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | object | The old value. |
| newValue | object | The new value. |
OnMenuAdditionalContentTemplateChanged(DataTemplate?, DataTemplate?)
Occurs when the MenuAdditionalContentTemplate property value is changed.
protected virtual void OnMenuAdditionalContentTemplateChanged(DataTemplate? oldValue, DataTemplate? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplate | The old value. |
| newValue | DataTemplate | The new value. |
OnMenuAdditionalContentTemplateSelectorChanged(DataTemplateSelector?, DataTemplateSelector?)
Occurs when the MenuAdditionalContentTemplateSelector property value is changed.
protected virtual void OnMenuAdditionalContentTemplateSelectorChanged(DataTemplateSelector? oldValue, DataTemplateSelector? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplateSelector | The old value. |
| newValue | DataTemplateSelector | The new value. |
OnMenuFooterChanged(object?, object?)
Occurs when the MenuFooter property value is changed.
protected virtual void OnMenuFooterChanged(object? oldValue, object? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | object | The old value. |
| newValue | object | The new value. |
OnMenuFooterTemplateChanged(DataTemplate?, DataTemplate?)
Occurs when the MenuFooterTemplate property value is changed.
protected virtual void OnMenuFooterTemplateChanged(DataTemplate? oldValue, DataTemplate? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplate | The old value. |
| newValue | DataTemplate | The new value. |
OnMenuFooterTemplateSelectorChanged(DataTemplateSelector?, DataTemplateSelector?)
Occurs when the MenuFooterTemplateSelector property value is changed.
protected virtual void OnMenuFooterTemplateSelectorChanged(DataTemplateSelector? oldValue, DataTemplateSelector? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | DataTemplateSelector | The old value. |
| newValue | DataTemplateSelector | The new value. |
OnPopupOpening(CancelRoutedEventArgs)
Occurs before the IsPopupOpen property changes to true.
protected override void OnPopupOpening(CancelRoutedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | CancelRoutedEventArgs | The event data. |
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.
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnPreviewMouseLeftButtonDown(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. |
Fields
ContentFontSizeProperty
Defines the ContentFontSize property.
public static readonly DependencyProperty ContentFontSizeProperty
ContentProperty
Defines the Content property.
public static readonly DependencyProperty ContentProperty
ContentTemplateProperty
Defines the ContentTemplate property.
public static readonly DependencyProperty ContentTemplateProperty
ContentTemplateSelectorProperty
Defines the ContentTemplateSelector property.
public static readonly DependencyProperty ContentTemplateSelectorProperty
HasContentProperty
Defines the HasContent property.
public static readonly DependencyProperty HasContentProperty
HasMenuAdditionalContentProperty
Defines the HasMenuAdditionalContent property.
public static readonly DependencyProperty HasMenuAdditionalContentProperty
HasMenuFooterProperty
Defines the HasMenuFooter property.
public static readonly DependencyProperty HasMenuFooterProperty
MenuAdditionalContentProperty
Defines the MenuAdditionalContent property.
public static readonly DependencyProperty MenuAdditionalContentProperty
MenuAdditionalContentTemplateProperty
Defines the MenuAdditionalContentTemplate property.
public static readonly DependencyProperty MenuAdditionalContentTemplateProperty
MenuAdditionalContentTemplateSelectorProperty
Defines the MenuAdditionalContentTemplateSelector property.
public static readonly DependencyProperty MenuAdditionalContentTemplateSelectorProperty
MenuFooterProperty
Defines the MenuFooter property.
public static readonly DependencyProperty MenuFooterProperty
MenuFooterTemplateProperty
Defines the MenuFooterTemplate property.
public static readonly DependencyProperty MenuFooterTemplateProperty
MenuFooterTemplateSelectorProperty
Defines the MenuFooterTemplateSelector property.
public static readonly DependencyProperty MenuFooterTemplateSelectorProperty
Inherited Members
- BarPopupButtonBase.PopupClosedEvent
- BarPopupButtonBase.PopupOpenedEvent
- BarPopupButtonBase.PopupOpeningEvent
- BarPopupButtonBase.CanEffectivelyExecuteProperty
- BarPopupButtonBase.CanEffectivelyOpenPopupProperty
- BarPopupButtonBase.CommandProperty
- BarPopupButtonBase.CommandParameterProperty
- BarPopupButtonBase.CommandTargetProperty
- BarPopupButtonBase.CornerRadiusProperty
- BarPopupButtonBase.HasDropShadowProperty
- BarPopupButtonBase.HasLabelProperty
- BarPopupButtonBase.IsPopupOpenProperty
- BarPopupButtonBase.IsPressedProperty
- BarPopupButtonBase.KeyTipTextProperty
- BarPopupButtonBase.LabelProperty
- BarPopupButtonBase.ParentGalleryMinWidthProperty
- BarPopupButtonBase.PopupAnimationProperty
- BarPopupButtonBase.PopupBackgroundProperty
- BarPopupButtonBase.PopupBorderBrushProperty
- BarPopupButtonBase.PopupBorderThicknessProperty
- BarPopupButtonBase.PopupClosedCommandProperty
- BarPopupButtonBase.PopupCornerRadiusProperty
- BarPopupButtonBase.PopupHorizontalOffsetProperty
- BarPopupButtonBase.PopupIndicatorTemplateProperty
- BarPopupButtonBase.PopupOpeningCommandProperty
- BarPopupButtonBase.PopupPaddingProperty
- BarPopupButtonBase.PopupVerticalOffsetProperty
- BarPopupButtonBase.ClearContainerForItemOverride(DependencyObject, object)
- BarPopupButtonBase.ExecuteClickFromKeyboard()
- BarPopupButtonBase.GetContainerForItemOverride()
- BarPopupButtonBase.HandleMouseButton(MouseButtonEventArgs)
- BarPopupButtonBase.IsItemItsOwnContainerOverride(object)
- BarPopupButtonBase.IsOverButtonArea(MouseEventArgs)
- BarPopupButtonBase.OnApplyTemplate()
- BarPopupButtonBase.OnClick(RoutedEventArgs)
- BarPopupButtonBase.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- BarPopupButtonBase.OnPopupClosed(RoutedEventArgs)
- BarPopupButtonBase.OnPopupOpened(RoutedEventArgs)
- BarPopupButtonBase.OnPreviewKeyUp(KeyEventArgs)
- BarPopupButtonBase.PrepareContainerForItemOverride(DependencyObject, object)
- BarPopupButtonBase.SetFocusForIndicatorAreaMouseDown()
- BarPopupButtonBase.UpdateEnabledProperties()
- BarPopupButtonBase.UpdatePopupPlacement()
- BarPopupButtonBase.CanEffectivelyExecute
- BarPopupButtonBase.CanEffectivelyOpenPopup
- BarPopupButtonBase.CanFocusSelectedGalleryItemOnPopupOpen
- BarPopupButtonBase.Command
- BarPopupButtonBase.CommandParameter
- BarPopupButtonBase.CommandTarget
- BarPopupButtonBase.CornerRadius
- BarPopupButtonBase.HasDropShadow
- BarPopupButtonBase.HasLabel
- BarPopupButtonBase.IsEnabledCore
- BarPopupButtonBase.IsPopupOpen
- BarPopupButtonBase.IsPressed
- BarPopupButtonBase.KeyTipText
- BarPopupButtonBase.Label
- BarPopupButtonBase.ParentGalleryMinWidth
- BarPopupButtonBase.PopupAnimation
- BarPopupButtonBase.PopupBackground
- BarPopupButtonBase.PopupBorderBrush
- BarPopupButtonBase.PopupBorderThickness
- BarPopupButtonBase.PopupClosedCommand
- BarPopupButtonBase.PopupCornerRadius
- BarPopupButtonBase.PopupHorizontalOffset
- BarPopupButtonBase.PopupIndicatorTemplate
- BarPopupButtonBase.PopupOpeningCommand
- BarPopupButtonBase.PopupPadding
- BarPopupButtonBase.PopupVerticalOffset
- BarPopupButtonBase.PopupClosed
- BarPopupButtonBase.PopupOpened
- BarPopupButtonBase.PopupOpening