# ChildSpacing

## Content



[**ChildSpacing**](/componentone/api/wpf/online-orgchart/dotnet-framework-api/C1.WPF.OrgChart.4.6.2/C1.WPF.OrgChart.C1OrgChart.ChildSpacing.html) property allows you to control the separation between items, in pixels. The default value is (20, 20), which spaces items by 20 pixels in the horizontal and vertical directions. For example, setting the **ChildSpacing** property to (20, 60) would have the following effect:

```xml
<c1:C1OrgChart
   x:Name="_orgChart"
   ChildSpacing="20 60"
   ItemTemplate="{StaticResource EmployeeTemplate }" >
 </c1:C1OrgChart>
```

![C1OrgChart for WPF](https://cdn.mescius.io/document-site-files/images/282d56f4-1ae7-4585-bed7-ef71b36e32f5/imagesext/image12_8.jpg)

Notice how the vertical spacing between items increased compared to the default setting.

You can also control the spacing between items by specifying a **Margin** value in your **ItemTemplate**. This approach is slightly more flexible because it allows you to specify the amount of space to be left on each side of the node elements.