Scaling RadDocking with ToolWindows

2 posts, 0 answers
  1. Stanislau
    Stanislau avatar
    1 posts
    Member since:
    May 2015

    Posted 28 Mar Link to this post

    We need to implement a zooming feature on our control, which include RadDocking element.

    Unfortunately, the floating tool windows do not scale just by applying RenderTransform to the control, like this:

        Dock.RenderTransform = new ScaleTransform { ScaleX = Scaler.Scale, ScaleY = .caler.Scale };

     

    As said in this thread (http://www.telerik.com/forums/applying-a-scaletransform-to-a-raddocking-container-causes-splitters-to-drag-strangely) there is no native solution to this. However, is this possible with manual control over the positioning and scaling of the windows? Is there a way to get a list of all tool windows generated for RadPanes, and is it possible to control their position and scale?

     

    Thanks.

  2. Polya
    Admin
    Polya avatar
    243 posts

    Posted 31 Mar Link to this post

    Hi Stanislau,

    In order to get all opened ToolWindows you can use the RadWindowManager.Current.GetWindows() method and filter those of type ToolWindow:
    var toolWindows = RadWindowManager.Current.GetWindows().OfType<ToolWindow>();

    Regarding the transform operations - scaling the ToolWindow up (zooming) would result in a broken looking UI, because the ToolWindow is hosted in a transparent native window chrome, which size will not change when the transform is applied.

    Regards,
    Polya
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top