BreadcrumbButtonBase Class
Represents a button that shows a ContextMenu and is used in a Breadcrumb.
public abstract class BreadcrumbButtonBase : PopupButton, IPopupAnchor
- Inheritance:
- object Visual UIElement FrameworkElement Control ContentControl ButtonBase Button PopupButton object
- Implements:
- IPopupAnchor
Constructors
BreadcrumbButtonBase()
Initializes an instance of the class.
protected BreadcrumbButtonBase()
Methods
Close()
Closes the drop-down if it is open.
public void Close()
CreateMenuItem(object?, IBreadcrumbCommon?, bool, IInputElement?, object?)
Creates a MenuItem from the specified parameters.
protected static MenuItem CreateMenuItem(object? data, IBreadcrumbCommon? breadcrumbCommon, bool isExpanded, IInputElement? commandTarget, object? commandParameter = null)
| Parameter | Type | Description |
|---|---|---|
| data | object | The data. |
| breadcrumbCommon | IBreadcrumbCommon | A control that implements IBreadcrumbCommon, which supplies the Style and DataTemplate that should be used for the MenuItem created. Both Breadcrumb and BreadcrumbItem implement the IBreadcrumbCommon interface. |
| isExpanded | bool | if set to |
| commandTarget | IInputElement | The command target. |
| commandParameter | object | The command parameter. |
Returns
GenerateContextMenu()
Generates a ContextMenu to be shown by the BreadcrumbButtonBase.
protected abstract ContextMenu? GenerateContextMenu()
Returns
- ContextMenu:
A ContextMenu; otherwise
null.
OnPopupOpening(CancelRoutedEventArgs)
Occurs before the IsPopupOpen property changes to true.
protected override void OnPopupOpening(CancelRoutedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | CancelRoutedEventArgs | 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.
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.OnApplyTemplate()
- PopupButton.OnClick()
- PopupButton.OnCreateAutomationPeer()
- 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.OnPopupOpened(RoutedEventArgs)
- 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