Skip to main content
Version: 4.1

MenuBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a menu bar component.

public class MenuBar : Control

Constructors

Initializes a new instance of the MenuBar class.

Properties

Instance member AutoOverflow

Boolean: Enables the overflow handling which automatically removes items that don't fit in the MenuBar and adds them to a drop-down menu button. (Default: True)

Instance member BorderStyle

BorderStyle: Returns or sets the border style of the MenuBar control. (Default: None)

Instance member CausesValidation

Boolean: Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus. (Default: False)

Protected member DefaultSize

Size:

Instance member Dock

DockStyle: (Default: None)

MenuItemCollection: Returns the collection of MenuItem objects associated with the menu.

Methods

Protected member Dispose(disposing)

Disposes of the resources (other than memory) used by the MenuBar.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Protected member OnAddReferences(items)

Returns a collection of referenced components or collection of components.

ParameterTypeDescription
itemsIList

Protected member OnBindingContextChanged(e)

Fires the BindingContextChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnEnabledChanged(e)

ParameterTypeDescription
eEventArgs

Protected member OnMenuItemAdded(e)

Fires the MenuItemAdded event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnMenuItemClicked(e)

Fired the MenuItemClicked event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnMenuItemRemoved(e)

Fires the MenuItemRemoved event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnParentChanged(e)

ParameterTypeDescription
eEventArgs

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member SetBoundsCore(x, y, width, height, specified)

Sets the specified bounds of the MenuBar control.

ParameterTypeDescription
xInt32The new Left property value of the control.
yInt32The new Top property value of the control.
widthInt32The new Width property value of the control.
heightInt32Not used.
specifiedBoundsSpecifiedA combination of the BoundsSpecified values.

Events

MenuItemEventHandler Fired when a new menu item is added to the MenuItemCollection.

MenuItemEventHandler Fired when a menu item is clicked.

MenuItemEventHandler Fired when a menu item is removed from the MenuItemCollection.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.