3 Answers, 1 is accepted
Thank you for writing.
In order to make the RadTreeView transparent and display the BackgroundImage of the form, you can use the following code snippet:
public
Form1()
{
InitializeComponent();
this
.BackgroundImage = Properties.Resources.Koala;
this
.radTreeView1.BackColor = Color.Transparent;
this
.radTreeView1.TreeViewElement.BackColor = Color.Transparent;
}
I hope this information helps. Should you have further questions I would be glad to help.
Dess
Telerik
Hello, Xin,
In the previously provided solution, it is shown how to make RadTreeView control looks transparent so the background image can be see through it. Following the brief information that you provided, it is not very clear what exactly you would like to achieve but I suppose that you want some opacity of the color in treeview. If you do so I can suggest using the Color.FromArgb method where you can specify the alpha component of the Color.
You can refer to the following thread from StackOverFlow as well where a similar questions was already discussed: https://stackoverflow.com/questions/5064774/opacity-on-control
However, if you need any further assistance I would kindly ask you to give more details about what is the final goal that you would like to achieve. It would be of great help if you can provide a picture or video of the desired look.
I hope this information helps. Let me know if I can assist you further.
Regards,
Nadya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.