Two bugs related to maximizing and resizing

4 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 08 Sep 2009 Link to this post

    Hi, please take a look at the following sample project. It demonstrates two bugs that I found. I've included instructions on how to reproduce the bugs in the project.

    http://cid-cc43a90a79374ebd.skydrive.live.com/self.aspx/Public/SilverlightApplication41.zip

    I'm using the latest internal build (2009_2_904).

    Best regards,
    /Henrik
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Sep 2009 Link to this post

    Hi Henrik,

    Thank you for reporting us these issues. We will fix the maximize problem as soon as we can. The fix will be included in one of the next latest internal builds.

    The second problem is not really a bug, but expected behavior - as the Width and Height of the Window are initially double.NaN, it will be as big as its content needs to be. The strange behavior happens because of the UserControl in it. If you resize the window its width and height are explicitly set and its content cannot resize it any more.

    Your account was updated with Telerik points.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 08 Sep 2009 Link to this post

    Ok. First of all, thanks for looking at the maximize bug. Secondly, while I understand that the window by default will be as big as its content requires it to be, I cannot understand why moving a gridsplitter in a layout grid would  make the parent usercontrol need more space in the surrounding window. But perhaps I'm missing something. Please explain further if you can.

    Thanks,
    /Henrik
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 09 Sep 2009 Link to this post

    Hello Henrik,

    This is how the ContentControl works by default. I don't know if this is good or bad but we use this functionality as it is. Here is a small example that simplifies the scenario:
    <ContentControl> 
        <Grid Background="Red"
            <Grid.ColumnDefinitions> 
                <ColumnDefinition /> 
                <ColumnDefinition Width="350" /> 
            </Grid.ColumnDefinitions> 
     
            <Button Content="Left" Grid.Column="0" Margin="0 0 4 0" /> 
            <swc:GridSplitter Grid.Column="0" Width="4" HorizontalAlignment="Right" 
                    VerticalAlignment="Stretch" /> 
            <Button Content="Right" Grid.Column="1" /> 
        </Grid> 
    </ContentControl> 


    Regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top