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

AutoHide not hiding

1 Answer 343 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 10 Aug 2012, 04:00 PM
We are implementing the RadDocking with just one Toolbar (splitcontainer with radpanegroup with one radpane...see XAML later in post). It is Docked Left and starts out Unpinned.

When you click on the AutoHideArea tab for the Toolbar it opens just fine but never AutoHides even when I move the mouse over and click on the main document area.

The documentation on http://www.telerik.com/help/wpf/raddocking-panes-pinned-unpinned-panes.html says:

"The unpinned RadPane is shown only when the mouse cursor is over it and is hidden when the cursor leaves its area."

This is clearly not happening.  In fact, I loaded the "Getting Started" example in this same documentation section and it does not occur there either.  Either I am missing something or something is broken (or the documentation is wrong)

That is Question 1: Why does the unpinned RadPane not hide when the cursor leaves its area?

Question 2:

XAML is below.  In the code, the c:TabControl shown is just a wrapper for a RadTabControl.  After some work I figured out that it is probably because my control is directly in the DocumentHost.  I did this because I do not want a splitcontainer or pane header.  I just want my own control in the main area.  In addition, our tabcontrol relies on an override of RadTabControl.OnApplyTemplate() getting fired when RadDocking performs its MeasureOverride(), which does not happen when I put our control inside these new panes.

Maybe I just need to know how to ensure my OnApplyTemplate() override gets fired when RadDocking performs its MeasureOverride() but then I would also need to know how to hide the Pane header I suppose.

Thanks for any help.

<telerik:RadDocking  telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True">
            <telerik:RadDocking.RootCompassStyle>
                <Style TargetType="telerik:RootCompass">
                    <Setter Property="IsCenterIndicatorVisible" Value="False" />
                    <Setter Property="IsTopIndicatorVisible" Value="False" />
                    <Setter Property="IsBottomIndicatorVisible" Value="False" />
                </Style>
                </telerik:RadDocking.RootCompassStyle>
            <telerik:RadDocking.CompassStyle>
                <Style TargetType="telerik:Compass">
                    <Setter Property="IsCenterIndicatorVisible" Value="False" />
                    <Setter Property="IsTopIndicatorVisible" Value="False" />
                    <Setter Property="IsBottomIndicatorVisible" Value="False" />
                </Style>
            </telerik:RadDocking.CompassStyle>
            <telerik:RadDocking.DocumentHost>
                <telerik:RadBusyIndicator IsBusy="{Binding LayoutLoaded,Converter={StaticResource BooleanInverter}}"
                                  DockPanel.Dock="Left"
                                  BusyContent="Loading Layout..."
                                  IsIndeterminate="True">
                <c:TabControlEx x:Name="ItemTabControl"
                            ItemsSource="{Binding Tabs}"
                            SelectedItem="{Binding ActiveTab}"
                            Loaded="ItemTabControl_Loaded"
                            Padding="0"
                            Style="{StaticResource BlueTabControlEx}"/>
                </telerik:RadBusyIndicator>
            </telerik:RadDocking.DocumentHost>
 
            <telerik:RadSplitContainer InitialPosition="DockedLeft" Width="285">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Toolbox" IsPinned="False">
                        <v:NewToolboxView BorderBrush="#385d8a" BorderThickness="2" DataContext="{Binding Toolbox}"/>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 15 Aug 2012, 10:35 AM
Hi Barry,

Straight to your questions:
1) You are correct, the documentation is misleading, we will fix it for the next upload. In order the clicked hidden panes to close the focus should be captured by other element in a pane or another pane clicked on the header to get activated. If it is just hovered to open, when you leave the pane it gets closed. Please refer to the short video I prepared in order to demonstrate the behavior.
2) The OnApplyTemplate is fired only once at the beginning after the MeasureOverrides of the Docking when the control is displayed initially. It is controlled by the framework, so I don't think its possible to be changed. However, I tested your scenario and the OnApplyTemplate seems to fire correctly.
In order to remove the header of the Pane inside the DocumentHost you need to set its Visibility property to Collapsed. More information you could find in this help article: http://www.telerik.com/help/silverlight/raddocking-how-to-remove-the-header-of-the-radpane.html

Hope this information helps.

Greetings,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Barry
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or