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

RadDocumentPane & VerticalScrollBar Visibility

1 Answer 85 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Selva Balaji
Top achievements
Rank 1
Selva Balaji asked on 07 Apr 2011, 09:13 AM
Looks like VerticalScrollBar is not getting displayed in DocumentPane

Below is the code
<Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
        WindowStartupLocation="CenterScreen"
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        Width="800"
        Height="600"
        WindowState="Maximized">
  <StackPanel Orientation="Vertical">
    <Controls:RadDocking AllowUnsafeMode="True">
      <Controls:RadSplitContainer VerticalAlignment="Top"
                                  Width="101"
                                  MaxWidth="101"
                                  HorizontalAlignment="Left"
                                  InitialPosition="DockedLeft">
        <Controls:RadPaneGroup HorizontalAlignment="Left"
                               VerticalAlignment="Top">
          <Controls:RadPane Header="Tools"
                            HorizontalAlignment="Left"
                            CanUserClose="False"
                            ContextMenuTemplate="{x:Null}"
                            CanFloat="False">
<ToolBarTray/>
  </Controls:RadPane>
        </Controls:RadPaneGroup>
      </Controls:RadSplitContainer>
      <Controls:RadDocking.DocumentHost>
        <Controls:RadSplitContainer>
          <Controls:RadPaneGroup>
            <Controls:RadDocumentPane Visibility="Collapsed"
                                      CanUserClose="False">
              <Grid Background="Transparent">
                <ScrollViewer HorizontalScrollBarVisibility="Auto"
                              VerticalScrollBarVisibility="Auto">
                  <Canvas Height="600"
                          Width="800"
                          Background="{StaticResource MyGrayGridBrush}">
                  </Canvas>
                </ScrollViewer>
              </Grid>
            </Controls:RadDocumentPane>
          </Controls:RadPaneGroup>
        </Controls:RadSplitContainer>
      </Controls:RadDocking.DocumentHost>
    </Controls:RadDocking>
  </StackPanel>
</Window>


Could anyone help?

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 13 Apr 2011, 09:30 AM
Hello Selva Balaji,

RadDocking doesn't calculate its size correctly because it's placed inside StackPanel, please remove the StackPanel in order to fix the issue.

I've attached the modified code for a reference.

All the best,
Yana
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
Selva Balaji
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or