AutoHide not hiding

2 posts, 0 answers
  1. Barry
    Barry avatar
    6 posts
    Member since:
    Feb 2009

    Posted 10 Aug 2012 Link to this post

    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 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">
                    <Style TargetType="telerik:RootCompass">
                        <Setter Property="IsCenterIndicatorVisible" Value="False" />
                        <Setter Property="IsTopIndicatorVisible" Value="False" />
                        <Setter Property="IsBottomIndicatorVisible" Value="False" />
                    <Style TargetType="telerik:Compass">
                        <Setter Property="IsCenterIndicatorVisible" Value="False" />
                        <Setter Property="IsTopIndicatorVisible" Value="False" />
                        <Setter Property="IsBottomIndicatorVisible" Value="False" />
                    <telerik:RadBusyIndicator IsBusy="{Binding LayoutLoaded,Converter={StaticResource BooleanInverter}}"
                                      BusyContent="Loading Layout..."
                    <c:TabControlEx x:Name="ItemTabControl"
                                ItemsSource="{Binding Tabs}"
                                SelectedItem="{Binding ActiveTab}"
                                Style="{StaticResource BlueTabControlEx}"/>
                <telerik:RadSplitContainer InitialPosition="DockedLeft" Width="285">
                        <telerik:RadPane Header="Toolbox" IsPinned="False">
                            <v:NewToolboxView BorderBrush="#385d8a" BorderThickness="2" DataContext="{Binding Toolbox}"/>
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 15 Aug 2012 Link to this post

    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:

    Hope this information helps.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top