# Styling the TreeView

The TreeView for .NET MAUI allows you to style its look by using the following properties:

* `BackgroundColor`(`Color`)—Specifies the background color of the control.
* `BorderColor`(`Color`)—Specifies the border color of the control.
* `BorderBrush`(`Color`)—Specifies the border brush of the control.
* `BorderThickness`(`Thickness`)—Specifies the border thickness of the control.
* `CornerRadius`(`Thickness`)—Specifies the corner radius of the control.
* `ContentPadding`(`Thickness`)—Specifies the content padding of the control.

## Styling the TreeView Item

Style all elements in the TreeView Item—label, image, checkbox, expand/collapse indicator. For more details, review the [Item Style](https://www.telerik.com/maui-ui/documentation/controls/treeview/styling/item-style) article.

## Styling the Empty Template

When no data is displayed in the control, an empty template is visualized. Style the template by using the `EmptyStyle` property:

* `EmptyStyle`(`Style` with target type `telerik:ItemsEmptyView`)—Specifies the style applied to the empty view.

You can use the following properties:

* `VerticalContentOptions` (of type `LayoutOptions`)—Specifies the vertical layout options of the displayed content.
* `HorizontalContentOptions` (of type `LayoutOptions`)—Specifies the horizontal layout options of the displayed content.
* `ContentTemplate` (`DataTemplate`)—Specifies the content template of the empty view.

To customize the empty view, use the `EmptyTemplate` (`DataTemplate`) property.

## See Also

* [Expand and Collapse TreeView Items](https://www.telerik.com/maui-ui/documentation/controls/treeview/expand-collapse)
* [CheckBoxes in TreeView](https://www.telerik.com/maui-ui/documentation/controls/treeview/checkboxes)
* [Styling the TreeView Item](https://www.telerik.com/maui-ui/documentation/controls/treeview/styling/item-style)
* [Scrolling options](https://www.telerik.com/maui-ui/documentation/controls/treeview/scrolling)
* [Multiple and Single Selection](https://www.telerik.com/maui-ui/documentation/controls/treeview/selection)
* [Events](https://www.telerik.com/maui-ui/documentation/controls/treeview/events)
* [Available Commands in .NET MAUI TreeView](https://www.telerik.com/maui-ui/documentation/controls/treeview/commands)
