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

RadOutlookBar in RadPane

1 Answer 44 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alireza
Top achievements
Rank 1
Alireza asked on 30 Dec 2012, 07:05 AM
Hi
I have RadOutlookbar in my project and i try put in RadPane
How can i bind these control's width to each other ?
That means When i resize RadPane in Two mode(autohide & Pane) RadOutlookbar is changed 

my sample code
<telerik:RadDocking>
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup SizeChanged="RadPaneGroup_SizeChanged_1">
                    <telerik:RadPane Header="Description" Name="test" SizeChanged="RadPane_SizeChanged_1" MediaCommand="RadPane_MediaCommand_1" >
                        
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup>
                <telerik:RadPane Header="test" Name="test1"  IsPinned="False" AutoHideWidth="{Binding Width, ElementName=outbarSubSystems, Mode=TwoWay}" >
                <telerik:RadOutlookBar x:Name="outbarSubSystems" MinContentHeight="300"
                                   HorizontalAlignment="Left" telerik:StyleManager.Theme="Office_Blue" SizeChanged="outbarSubSystems_SizeChanged_1"
                    Width="{Binding AutoHideWidth, ElementName=test1, Mode=TwoWay}" Height="Auto"   MinimizedAreaVisibility="Visible" 
                     VerticalAlignment="Stretch" MinimizedButtonContent="test" MinimizedWidthThreshold="55" MinimizedWidth="55" IsMinimized="False"/>
            </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 02 Jan 2013, 02:43 PM
Hi Alireza,

As far as I understand you need the RadPanelBar to fill all the available space in the RadPane. The easiest way to achieve your goal is to set the HorizontalAlignment property of the RadPanelBar to Streched. By doing this the layout will recalculate and update the size of the RadPanelBar. Keep in mind that you have to remove the Width/Height properties.

Kind regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Alireza
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or