This is a migrated thread and some comments may be shown as answers.

Make RadTreeView transparent

3 Answers 163 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Yacov
Top achievements
Rank 1
Yacov asked on 30 Dec 2015, 10:24 AM

Hi,

I have a image background on a normal winforms

How can I make RadTreeView component be transparent and to see the the image background?

Thanks in advance

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Dec 2015, 12:19 PM
Hello Yacov,

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.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Xin
Top achievements
Rank 1
answered on 09 Sep 2020, 02:43 AM
What's the RadTreeView? I need a opacity TreeView Component ,but no skin form has the treeview
0
Nadya | Tech Support Engineer
Telerik team
answered on 11 Sep 2020, 10:28 AM

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/.

Tags
Treeview
Asked by
Yacov
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Xin
Top achievements
Rank 1
Nadya | Tech Support Engineer
Telerik team
Share this question
or