# BindableComponent

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

* [Component](https://docs.wisej.com/api/wisej.base/general/wisej.base.component)
  * [Component](https://docs.wisej.com/api/wisej.web/general/wisej.web.component)
    * [BindableComponent](https://docs.wisej.com/api/wisej.web/general/wisej.web.bindablecomponent)

Extends [Component](https://docs.wisej.com/api/wisej.web/general/wisej.web.component) and enables the component to participated if data binding operations and have their own [DataBindings](#databindings).

{% tabs %}
{% tab title="C#" %}

```csharp
public class BindableComponent : Component, IBindableComponent, IBindableComponent
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class BindableComponent
    Inherits Component
    Implements IBindableComponent, IBindableComponent
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BindableComponent()

Initializes a new instance of [BindableComponent](https://docs.wisej.com/api/wisej.web/general/wisej.web.bindablecomponent).

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BindingContext

[BindingContext](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.bindingcontext): Returns or sets the [BindingContext](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.bindingcontext) for the component.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataBindings

[ControlBindingsCollection](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.controlbindingscollection): Returns the data bindings for the component.

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnBindingContextChanged(e)

Fires the [BindingContextChanged](#bindingcontextchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) OnParentBindingContextChanged(e)

Fires the [BindingContextChanged](#bindingcontextchanged) event when the [BindingContext](#bindingcontext) property value of the component's container changes.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

## Events

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BindingContextChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Occurs when the value of the [BindingContext](#bindingcontext) property changes.

## Inherited By

| Name                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CheckedMenuItem](https://docs.wisej.com/api/wisej.web/menus/wisej.web.checkedmenuitem)                  | Represents an individual menu item that is displayed within a [MainMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.mainmenu) or [ContextMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.contextmenu) and always shows a checkbox next to the label.                                                                                                          |
| [ContextMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.contextmenu)                          | Represents a context menu associated to a [Control](https://docs.wisej.com/api/wisej.web/general/control).                                                                                                                                                                                                                                                                         |
| [LinkMenuItem](https://docs.wisej.com/api/wisej.web/menus/wisej.web.linkmenuitem)                        | Represents an individual menu item that is displayed within a [MainMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.mainmenu) or [ContextMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.contextmenu) rendered using the \<a> link element to let the browser process the specified [HRef](https://docs.wisej.com/api/menus/wisej.web.linkmenuitem#href) URL. |
| [MainMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.mainmenu)                                | Represents the main menu in a [Form](https://docs.wisej.com/api/menus/wisej.web.mainmenu#form).                                                                                                                                                                                                                                                                                    |
| [Menu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.menu)                                        | Represents the base functionality for all menus.                                                                                                                                                                                                                                                                                                                                   |
| [MenuItem](https://docs.wisej.com/api/wisej.web/menus/wisej.web.menuitem)                                | Represents an individual item that is displayed within a [MainMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.mainmenu) or [ContextMenu](https://docs.wisej.com/api/wisej.web/menus/wisej.web.contextmenu).                                                                                                                                                             |
| [StatusBarControl](https://docs.wisej.com/api/wisej.web/containers/statusbar/wisej.web.statusbarcontrol) | Represents a panel in a [StatusBar](https://docs.wisej.com/api/wisej.web/containers/statusbar) control that can host any [Control](https://docs.wisej.com/api/containers/statusbar/wisej.web.statusbarcontrol#control).                                                                                                                                                            |
| [StatusBarPanel](https://docs.wisej.com/api/wisej.web/containers/statusbar/wisej.web.statusbarpanel)     | Represents a panel in a [StatusBar](https://docs.wisej.com/api/wisej.web/containers/statusbar) control.                                                                                                                                                                                                                                                                            |
| [ToolBarButton](https://docs.wisej.com/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton)         | Represents an item in the [ToolBar](https://docs.wisej.com/api/wisej.web/containers/toolbar).                                                                                                                                                                                                                                                                                      |

## Implements

| Name                                                                                                 | Description                                                                                                     |
| ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [IUserData](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iuserdata)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. |
| [IBindableComponent](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                   |
| [IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                  |
| [IWisejSerializable](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                           |
