Content bigger than RadWindow

2 posts, 0 answers
  1. Dumitru
    Dumitru avatar
    1 posts
    Member since:
    Aug 2010

    Posted 15 Sep 2010 Link to this post


    I have a UserControl that uses a ScaleTransform:

            Height="80" Background="Aqua">
                <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>

    When I use this control in a RadWindow the content is bigger than the window:

    RadWindow window = new RadWindow();
    window.Content = new XView();
    window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen;
    window.TopOffset = -40;

    How should I fix this?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 16 Sep 2010 Link to this post

    Hi Dumitru,

     As the RenderTransform property doesn't affect the layout it is normal to observe this behavior - the window is not going larger when its content is scaled with a RenderTransform. What I would suggest you is either to set RenderTransform to the whole window or to put a LayoutTransformControl and move the transformation to its LayoutTransform property - this way the transformation will affect also the layout. The first one will scale the whole window and will make its header, borders and buttons bigger and second one will only make its content area bigger and will make enough space for your scaled content.

    Hope this helps!

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top