MenuBar
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents a menu bar component.
- C#
- VB.NET
public class MenuBar : Control
Public Class MenuBar
Inherits Control
Constructors
MenuBar()
Initializes a new instance of the MenuBar class.
Properties
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)
BorderStyle
BorderStyle: Returns or sets the border style of the MenuBar control. (Default: None)
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)
DefaultSize
Size:
Dock
DockStyle: (Default: None)
MenuItems
MenuItemCollection: Returns the collection of MenuItem objects associated with the menu.
Methods
Dispose(disposing)
Disposes of the resources (other than memory) used by the MenuBar.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | true when this method is called by the application rather than a finalizer. |
OnAddReferences(items)
Returns a collection of referenced components or collection of components.
| Parameter | Type | Description |
|---|---|---|
| items | IList |
OnBindingContextChanged(e)
Fires the BindingContextChanged event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnEnabledChanged(e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs |
OnMenuItemAdded(e)
Fires the MenuItemAdded event.
| Parameter | Type | Description |
|---|---|---|
| e | MenuItemEventArgs | A MenuItemEventArgs that contains the event data. |
OnMenuItemClicked(e)
Fired the MenuItemClicked event.
| Parameter | Type | Description |
|---|---|---|
| e | MenuItemEventArgs | A MenuItemEventArgs that contains the event data. |
OnMenuItemRemoved(e)
Fires the MenuItemRemoved event.
| Parameter | Type | Description |
|---|---|---|
| e | MenuItemEventArgs | A MenuItemEventArgs that contains the event data. |
OnParentChanged(e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs |
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
SetBoundsCore(x, y, width, height, specified)
Sets the specified bounds of the MenuBar control.
| Parameter | Type | Description |
|---|---|---|
| x | Int32 | The new Left property value of the control. |
| y | Int32 | The new Top property value of the control. |
| width | Int32 | The new Width property value of the control. |
| height | Int32 | Not used. |
| specified | BoundsSpecified | A combination of the BoundsSpecified values. |
Events
MenuItemAdded
MenuItemEventHandler Fired when a new menu item is added to the MenuItemCollection.
MenuItemClicked
MenuItemEventHandler Fired when a menu item is clicked.
MenuItemRemoved
MenuItemEventHandler Fired when a menu item is removed from the MenuItemCollection.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IBindableComponent | Bindable components implement this interface. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |