ToolWindow Drop Shadow

4 posts, 1 answers
  1. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jul 2011

    Posted 11 Apr 2014 Link to this post

    Hi,

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

    Marcel
  2. Answer
    Masha
    Admin
    Masha avatar
    355 posts

    Posted 15 Apr 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jul 2011

    Posted 18 Apr 2014 in reply to Masha Link to this post

    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
  5. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 22 Apr 2014 Link to this post

    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.

     
Back to Top