In This Article

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
Derived:
BreadcrumbItemNavigateButton BreadcrumbOverflowButton

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 true then the given item is currently expanded.

commandTarget IInputElement

The command target.

commandParameter Object

The command parameter.

Returns

MenuItem:

A MenuItem that can be used in the popup.

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 CancelRoutedEventArgs that contains the event data.

Inherited Members

Extension Methods