# Add Custom Element in the ToolBox

This article demonstrates how to add a custom UIElement in the NewItems section of the LayoutControlToolBoxView which is located under the Items tab.

> caption The default toolbox items

![The default toolbox items](https://www.telerik.com/products/wpf/documentation/assets/37c08ff048d26e7c997f585fd3cd52ae/radlayoutcontrol-how-to-add-custom-element-in-toolbox-01.png)

To add a new element in the toolbox you can use the **NewItems** collection of LayoutControlToolBoxView and insert a new [LayoutControlHierarchicalNodeProxy](https://www.telerik.com/products/wpf/documentation/controls/radlayoutcontrol/features/toolbox/layoutcontroltoolboxview#layoutcontrolhierarchicalnodeproxy) object. The proxy has several properties that describe the toolbox item - header, element type and element instance - which will be used when the item is dropped in the layout control. **Example 1 and 2** show how to set up the proxy and add it in the NewItems collection.

**Example 1: Example LayoutControlToolBoxView definition**

```XAML
<telerik:LayoutControlToolBoxView x:Name="toolBoxView" LayoutControl="{Binding ElementName=layoutControl}">
```

**Example 2: Creat item proxies and add them in the NewItems collection**

```C#
LayoutControlHierarchicalNodeProxy buttonToolBoxProxy = new LayoutControlHierarchicalNodeProxy();
buttonToolBoxProxy.Header = "Button";
buttonToolBoxProxy.OriginalItemType = typeof(Button);
buttonToolBoxProxy.OriginalItem = new Button() { Content = "Button" };

LayoutControlHierarchicalNodeProxy textBoxToolBoxProxy = new LayoutControlHierarchicalNodeProxy();
textBoxToolBoxProxy.Header = "TextBox";
textBoxToolBoxProxy.OriginalItemType = typeof(TextBox);
textBoxToolBoxProxy.OriginalItem = new TextBox() { Text = "Your input.." };

this.toolBoxView.NewItems.Add(buttonToolBoxProxy);
this.toolBoxView.NewItems.Add(textBoxToolBoxProxy);
```

In **Example 2** we add two additional proxies in the collection and they represent a TextBox and a Button which can be dragged and dropped from the toolbox to the layout control.

> caption The toolbox with two additional items

![The toolbox with two additional items](https://www.telerik.com/products/wpf/documentation/assets/c21f8c5c1204a5272d6c79ba2249ab0c/radlayoutcontrol-how-to-add-custom-element-in-toolbox-02.png)

> tip The custom items will be drawn using the default toolbox item icon. You can find a runnable project showing how to alter this and also the approach described in the article in our [GitHub SDK repository](https://github.com/telerik/xaml-sdk/tree/master/LayoutControl/AddCustomElementInToolBox).

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radlayoutcontrol/getting-started/getting-started)
* [Visual Structure](https://www.telerik.com/products/wpf/documentation/controls/radlayoutcontrol/visual-structure)
* [Layout Groups Overview](https://www.telerik.com/products/wpf/documentation/controls/radlayoutcontrol/features/layoutgroups/overview)
* [Layout Panel](https://www.telerik.com/products/wpf/documentation/controls/radlayoutcontrol/getting-started/layout-panel)
