BreadcrumbButtonBase Class
Represents a button that shows a ContextMenu and is used in a Breadcrumb.
public abstract class BreadcrumbButtonBase : PopupButton, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, ICommandSource, IPopupAnchor
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ContentControl ButtonBase Button PopupButton Object
Constructors
BreadcrumbButtonBase()
Initializes a new instance of the BreadcrumbButtonBase class.
protected BreadcrumbButtonBase()
Methods
Close()
Closes the drop-down if it is open.
public void Close()
CreateMenuItem(Object, IBreadcrumbCommon, Boolean, IInputElement, Object)
Creates a MenuItem from the specified parameters.
protected static MenuItem CreateMenuItem(object data, IBreadcrumbCommon breadcrumbCommon, bool isExpanded, IInputElement commandTarget, object commandParameter)
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 | Boolean | 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)
Raises the PopupOpening event.
protected override void OnPopupOpening(CancelRoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | CancelRoutedEventArgs | A |
Inherited Members
- PopupButton.PopupClosedEvent
- PopupButton.PopupOpenedEvent
- PopupButton.PopupOpeningEvent
- 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.PopupVerticalOffsetProperty
- PopupButton.StaysOpenProperty
- PopupButton.OnApplyTemplate()
- PopupButton.OnClick()
- PopupButton.OnCreateAutomationPeer()
- PopupButton.OnKeyDown(KeyEventArgs)
- PopupButton.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PopupButton.OnMouseLeftButtonUp(MouseButtonEventArgs)
- PopupButton.OnMouseWheel(MouseWheelEventArgs)
- PopupButton.OnPopupClosed(RoutedEventArgs)
- PopupButton.OnPopupOpened(RoutedEventArgs)
- PopupButton.ClosePopupCommand
- PopupButton.DisplayMode
- PopupButton.HasDropShadow
- PopupButton.IsAutoFocusOnOpenEnabled
- PopupButton.IsPopupOpen
- PopupButton.IsTransparencyModeEnabled
- PopupButton.LogicalChildren
- 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.PopupVerticalOffset
- PopupButton.StaysOpen
- PopupButton.PopupClosed
- PopupButton.PopupOpened
- PopupButton.PopupOpening
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()