RadOutlookBar in RadPane

2 posts, 0 answers
  1. Alireza
    Alireza avatar
    2 posts
    Member since:
    Dec 2011

    Posted 30 Dec 2012 Link to this post

    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:RadPaneGroup SizeChanged="RadPaneGroup_SizeChanged_1">
                        <telerik:RadPane Header="Description" Name="test" SizeChanged="RadPane_SizeChanged_1" MediaCommand="RadPane_MediaCommand_1" >
                    <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"/>
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 02 Jan 2013 Link to this post

    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.

Back to Top