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

RadDock transparency

1 Answer 97 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 Oct 2016, 09:42 AM
Hi,

I had a radRibbonForm as my main form in my application.

This form had background image which is set from local resources at run-time.

Is it possible to place a radDock control and make it fully transparent - so even if it's dock style is set to 'fill' the image on the background of the ribbon form will be seen?

I've tried adding an image (png) to the splitpanel but it does not centre or stretch:

radDock1.MainDocumentContainer.SplitPanelElement.Children.Add(imagePrimitive);

So, it would seem to be 'easier' for the dock control to be fully transparent.

 

Thanks folks.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 21 Oct 2016, 11:33 AM
Hi Martin,

Thank you for writing.

RadDock is a complex control and many of its items are recreated at run-time after a dock operation. The best way to achieve your task is using our Visual Style Builder tool and modifying the theme you are using: Custom Themes.

I have prepared a custom control default theme setting a transparent BackColor to most of the elements. Please note that it might not handle all possible cases. I have also attached a screenshot showing the result on my end.

You can also check the following forum threads discussing a similar scenario:
I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Tags
Dock
Asked by
Martin
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or