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

Vertical Stretch

4 Answers 179 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 28 Apr 2010, 11:11 AM
I want to have 2 panes, one larger than the other with a split vertically. I was these panes to be stretched to the size of their container, in this case a grid row. So I have this

        <telerikDocking:RadDocking x:Name="radDocking" Grid.Row="2">
            <telerikDocking:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal" VerticalAlignment="Stretch">
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="200, 200">
                    <telerikDocking:RadPane Header="pane" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="400, 200">
                    <telerikDocking:RadPane Header="pane" />
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>
        </telerikDocking:RadDocking>

However, this doesn't stretch to the grid row height. How can I get this to happen?

Thanks

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 29 Apr 2010, 01:34 PM
Hello Matt,

 What do you mean it doesn't stretch the Grid Row? What do you expect to happen and what actually happens?

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.
0
Matt
Top achievements
Rank 1
answered on 30 Apr 2010, 01:54 PM
In the instance above they do not stretch to fill the whole container. The only way I have managed to get things to fill up is by including a DocumentHost.

Maybe this control isn't really suitable, but all I want is two areas on a screen which I refer to as containers. These two containers have a split between them vertically so the width can be adjusted. Inside of these two containers you have user controls that are wrapped in a pane that can be moved about, much the same as a standard portal you would find like iGoogle.

Does this make sense?

Thanks
0
Miroslav Nedyalkov
Telerik team
answered on 05 May 2010, 12:08 PM
Hello Matt,

 I think I understood what the problem is - you need the SplitContainer to fill the entire space of the Docking control like it does when added as a DocumentHost. You can do that by setting the HasDocumentHost property of the Docking control to false. 

To achieve something like iGoogle you might prefer using the TileView control. Please refer to the following example http://demos.telerik.com/silverlight/#TileView/FirstLook.

All the best,
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.
0
Miroslav Nedyalkov
Telerik team
answered on 05 May 2010, 12:17 PM
Hi Matt,

 I'm sorry, I sent you the wrong link - this was the link for the Silverlight example. The corresponding WPF one is here: http://demos.telerik.com/WPF/?TileView/FirstLook.

Regards,
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.
Tags
Docking
Asked by
Matt
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Matt
Top achievements
Rank 1
Share this question
or