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

Two bugs related to maximizing and resizing

3 Answers 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 08 Sep 2009, 08:33 AM
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

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 08 Sep 2009, 02:18 PM
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.
0
hwsoderlund
Top achievements
Rank 1
answered on 08 Sep 2009, 02:40 PM
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
0
Valeri Hristov
Telerik team
answered on 09 Sep 2009, 11:27 AM
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.
Tags
Window
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
hwsoderlund
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or