RadDocking Wrapped with a Stack Panel

2 posts, 1 answers
  1. Victor
    Victor avatar
    4 posts
    Member since:
    Oct 2010

    Posted 15 Apr 2011 Link to this post

    Hi There,
    I am trying to Wrap a RadDocking Component with a StackPanel so that i can have a Banner bar on the top of my Application.

    The problem is that When i Add the <StackPanel Orientation="Vertical"> and compile and run the Silverlight application, the Silverlight Plugin actually crashes.

    Is there are a reason why we can not wrap a <StackPanel> arround a  <RadDocking>

    If you use the code below and remove the <StackPanel> the application will run and work fine in Internet Explorer and FireFox.

    XAML Code is below.

                <conv:UserDetailsConverter x:Key="userDetailsConverter"/>
      <StackPanel Orientation="Vertical">
      <StackPanel Orientation="Horizontal">
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
         <GradientStop Color="#FF200B5C" Offset="0"/>
         <GradientStop Color="#FF1E0DE5" Offset="0.845"/>
                                <TextBlock Text="AZTEC BACKSTAGE" Foreground="White" FontSize="15" Margin="10" FontWeight="Bold" />
                                <TextBlock Text="{Binding UserContext, Converter={StaticResource userDetailsConverter}}" Foreground="White" FontSize="12"

    VerticalAlignment="Center" Margin="10" />
                                <Button Content="Log Out" Height="22" Width="60" Margin="5" Click="LogOutButton_Click"/>
                <telerik:RadDocking x:Name="radDocking1">
                <telerik:RadSplitContainer x:Name="MainContainer" telerik:DockingPanel.InitialSize="600,600" InitialPosition="DockedTop">
                    <telerik:RadPaneGroup x:Name="MasterViewGroup">
                        <telerik:RadPane x:Name="ApplicationPane"  CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False" CanUserPin="False" >
                            <sdk:Frame x:Name="masterViewFrame"/>
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="130,130"
                        Name="bottomContainer" InitialPosition="DockedBottom">
                    <telerik:RadPaneGroup x:Name="ApplicationGroupPane" >
                        <telerik:RadPane x:Name="applicationPaneHolder" Header="Applications" IsPinned="True">
                            <ListBox x:Name="applicationListBox"
                                             ItemsSource="{Binding applicationList, Mode=TwoWay}"
                                             ItemTemplate="{StaticResource ApplicationItemTemplate}"
                                             ItemsPanel="{StaticResource ApplicationItemPanelTemplate}"
            <telerik:RadBusyIndicator x:Name="mainBusyIndicator" IsBusy="{Binding DataServicesAreBusy, Mode=TwoWay}" BusyContent="{Binding BusyContentText,

    Mode=TwoWay}"  /> 







    Thank you very much for you help.




  2. Answer
    Dani avatar
    848 posts

    Posted 18 Apr 2011 Link to this post

    Hi Victor,

    The StackPanel measures its children with infinity. The RadDocking control, however, cannot be measured with infinity. You can try setting the AllowUnsafeMode property on RadDocking. Better yet, I would suggest that you use a Grid instead of a StackPanel, or set an explicit size to the RadDocking control.

    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
Back to Top