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

ToolWindow Drop Shadow

3 Answers 156 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Iron
Marcel asked on 11 Apr 2014, 02:15 PM
Hi,

is there an easy way to add a drop shadow effect to the docking toolwindow?

Marcel

3 Answers, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 15 Apr 2014, 08:05 AM
Hi Marcel,

You need to modify the control template of ToolWindow and add shadow element inside it.
I have created and attached a sample project which demonstrates this approach.

I hope this helps.

Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marcel
Top achievements
Rank 1
Iron
answered on 18 Apr 2014, 09:19 AM
Hi Masha,

thank you very much for your help. I already tried your aproach before but forgot to set a margin to acutally see the shadow. Now that the shadow works, I have a minor Problem with the drag areas of the toolwindow. It's not on the visible border of the window anymore but where the shadow ends. This might get a Little confusing to the end user if the shadow is quite broad an he or she wants to resize the window... I guess there is no easy workaroud so I'm probably not going to use broad shadows.

Regards,
Marcel
0
Kalin
Telerik team
answered on 22 Apr 2014, 10:54 AM
Hi Marcel,

The approach Masha has suggested is the only solution for desired scenario indeed (you will need to use small margins in order be able to have the cursor changing in the correct area).

If you have any other questions let us know.

Regards,
Kalin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Docking
Asked by
Marcel
Top achievements
Rank 1
Iron
Answers by
Masha
Telerik team
Marcel
Top achievements
Rank 1
Iron
Kalin
Telerik team
Share this question
or