# DeviceToolbar

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods to interact with the client device's toolbar.

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

```csharp
public class DeviceToolbar
```

{% endtab %}

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

```visual-basic
Public Class DeviceToolbar
```

{% endtab %}
{% endtabs %}

The Device's title bar must be visible to see the toolbar. Access this class through the [Device](https://docs.wisej.com/hybrid/start/api/general/wisej.hybrid.device) singleton.

## Constructors

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

Initializes a new instance of [DeviceToolbar](https://docs.wisej.com/hybrid/start/api/ui/wisej.hybrid.devicetoolbar).

## Properties

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

[Color](https://docs.microsoft.com/dotnet/api/system.drawing.color): Gets or sets the toolbar's background color.

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

[Color](https://docs.microsoft.com/dotnet/api/system.drawing.color): Gets or sets the toolbar's foreground color.

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

[ToolbarItem\[\]](https://docs.wisej.com/hybrid/start/api/ui/wisej.hybrid.shared.toolbar.toolbaritem): Gets or sets the device's toolbar items.

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

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Gets or sets whether the toolbar is visible.

## Events

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

[EventHandler\<ToolbarItemClickedEventArgs>](https://docs.microsoft.com/dotnet/api/system.eventhandler-1) Fires when a toolbar item is clicked.
