## ContentTemplate

You can control and customize the rendering of the content items in the PanelBar with a `ContentTemplate`. Here is how to use it.

* The `ContentTemplate` is defined under the `PanelBarBinding` tag.
* It provides a `context` object that you can cast to the type, which the PanelBar is bound to.
* The template can include other Razor components or executable code.
* Similar to [`PanelBarBinding`s](https://www.telerik.com/blazor-ui/documentation/components/panelbar/data-binding/overview), there can be **one** `ContentTemplate` for all items at the same level. If the content of these items should be different, use conditional statements inside the template.
* A `ContentTemplate` displays like a child item. It is rendered only for the items, which have no children.

> caption Use ContentTemplate to customize the content items

<demo metaUrl="client/panelbar/templates/content/" height="500"></demo>

## See Also

* [Data Binding a PanelBar](https://www.telerik.com/blazor-ui/documentation/components/panelbar/data-binding/overview)
* [Live Demo: PanelBar](https://demos.telerik.com/blazor-ui/panelbar/overview)
