# Bunifu User Control

**Bunifu User Control** is one unique control in that it allows developers to build their own User Controls on top of it, using built-in features such as curving the borders or styling the control's surface. You can also easily implement your own custom designs using the .NET [Graphics](https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-create-graphics-objects-for-drawing) API that allows you to draw more shapes and effects.

Here's a sample UI inspiration combining various aspects of the control, including the circular shapes:

![](https://downloads.intercomcdn.com/i/o/108840880/80c6ae51fdc670b70f8e2894/bunifu-user-control-sample-two.png)

And here's a preview of Bunifu User Control in action:

![](https://downloads.intercomcdn.com/i/o/105436759/5ede6fa45b2c991fbf90784c/bunifu-user-control-preview-01.gif)

## **P**roperties

### **`BackColor`:**&#x20;

Applies the control's background color.

### **`BorderColor`:**&#x20;

Applies the control's border color.

### **`BorderRadius`:**&#x20;

Sets the control's border or corner radius.

### **`BorderThickness`:**&#x20;

Sets the control's border thickness.

### **`ShowBorders`:**&#x20;

Allows showing/hiding of the control's borders.

### **`Style`:**&#x20;

Applies either a round or a flat style to the control's surface.

## Events

### **`BackColorChanged`:**&#x20;

Raised whenever the control's background color has changed.

### **`BorderColorChanged`:**&#x20;

Raised whenever the control's border color has changed.&#x20;

### **`BorderRadiusChanged`:**&#x20;

Raised whenever the control's border radius has changed.

### **`BorderThicknessChanged`:**

&#x20;Raised whenever the control's border thickness has changed.

### **`ShowBordersChanged`:**&#x20;

Raised whenever the control's `ShowBorders` properties have changed.

### **`StyleChanged`:**&#x20;

Raised whenever the control's `Style`  property has changed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs2.bunifuframework.com/docs/ui/controls/bunifu-user-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
