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

Disabling autohide for pinned and unpinned panes

13 Answers 271 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 26 Jun 2009, 04:42 AM
Hi

Is it possible to change the autohide behavior of RadPanes when pinning and unpinning?

We'd like to have the following behavior:
  1. When unpinning a pinned pane, the pane immediately closes into the autohide area, rather than sliding into the autohide area.
  2. When a user hovers over a pane button in the autohide area, nothing happens (the pane doesn't slide out as in default behavior).
  3. When a user mouseclicks on a pane button in the autohide area, the pane immediately opens and pins, it doesn't slide out and only stay open while the user hovers over it.

Any help or code samples would be greatly appreciated.

Julian

13 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Jul 2009, 09:03 AM
Hello Julian,

The current version of RadDocking is not exposing such a functionality. We are putting this in our TODO list and we will be looking into implementing the feature with some of the upcoming releases.

Sincerely yours,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Dave
Top achievements
Rank 1
answered on 24 Sep 2009, 04:02 PM
Did this make it into any of the recent builds?
0
Miroslav Nedyalkov
Telerik team
answered on 25 Sep 2009, 02:39 PM
Hello Dave,

You can implement this behavior (that was described by Julian) yourself using the events of the RadPane and the events of the AutoHideArea - you can handle the SelectionChange event of the AutoHide area and unselect what is selected and to handle the Click event of the RadPane and to check is it unpinned and if it is to pin it back.

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
C Bates
Top achievements
Rank 1
answered on 13 Feb 2010, 02:32 PM
We have a customer that would like this functionality, too.

0
Miroslav Nedyalkov
Telerik team
answered on 17 Feb 2010, 09:58 AM
Hi C Bates,

 I added this feature request as a PITS item and you will be able to vote for it and to track its progress. Its ID is 57511.

All the best,
Miroslav Nedyalkov
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.
0
Susanna
Top achievements
Rank 1
answered on 18 Feb 2011, 02:27 PM
Hello, 

Has any of these features been implemented? Or is there any workaround especially for disabling the hover animation when user's mouse hovers on the autohide area?
0
Miroslav Nedyalkov
Telerik team
answered on 23 Feb 2011, 12:22 PM
Hi Susanna,

 These features are not implemented yet, but you could edit the animations by setting the AnimationManager.AnimationSelector attached property to the Docking control. Here is the default value for it:

<telerikAnimation:AnimationSelector>
    <!-- ToolWindow, Compass, RootCompass and DragCue animations -->
    <telerikAnimation:AnimationGroup AnimationName="Move">
        <telerikAnimation:MoveAnimation />
        <telerikAnimation:ResizeAnimation />
        <telerikAnimation:FadeAnimation Direction="In" />
        <telerikAnimation:ScaleAnimation Direction="In"
                                            MinScale="0.7"
                                            MaxScale="1.0" />
    </telerikAnimation:AnimationGroup>
 
    <telerikAnimation:AnimationGroup AnimationName="Show">
        <telerikAnimation:FadeAnimation Direction="In" />
        <telerikAnimation:ScaleAnimation Direction="In"
                                            MinScale="0.95"
                                            MaxScale="1.0" />
    </telerikAnimation:AnimationGroup>
    <telerikAnimation:AnimationGroup AnimationName="Hide"
                                        SpeedRatio="0.7">
        <telerikAnimation:FadeAnimation Direction="Out" />
        <telerikAnimation:ScaleAnimation Direction="Out"
                                            MinScale="0.7"
                                            MaxScale="1.0" />
    </telerikAnimation:AnimationGroup>
 
    <!-- AutoHideArea animations -->
 
    <!-- Left AutoHideArea animations -->
    <telerikAnimation:AnimationGroup AnimationName="LeftIn">
        <telerikAnimation:SlideAnimation SlideMode="Top"
                                            Duration="{StaticResource AutoHideInAnimationDuration}"
                                            TargetElementName="PopupChild"
                                            Orientation="Horizontal"
                                            Direction="In" />
                         
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild" Direction="In" />-->
    </telerikAnimation:AnimationGroup>
 
    <telerikAnimation:AnimationGroup AnimationName="LeftOut">
        <telerikAnimation:SlideAnimation TargetElementName="PopupChild"
                                                        SlideMode="Top"
                                                        Duration="{StaticResource AutoHideOutAnimationDuration}"   
                                                        Orientation="Horizontal"
                                                        Direction="Out" />
 
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                                        Direction="Out" />-->
    </telerikAnimation:AnimationGroup>
 
    <!-- Top AutoHideArea animations -->
 
    <telerikAnimation:AnimationGroup AnimationName="TopIn">
        <telerikAnimation:SlideAnimation Orientation="Vertical"
                                            Duration="{StaticResource AutoHideInAnimationDuration}"
                                            TargetElementName="PopupChild"
                                            Direction="In" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                                        Direction="In" />-->
    </telerikAnimation:AnimationGroup>
 
    <telerikAnimation:AnimationGroup AnimationName="TopOut">
        <telerikAnimation:SlideAnimation TargetElementName="PopupChild"
                                            Duration="{StaticResource AutoHideOutAnimationDuration}"
                                                        Orientation="Vertical"
                                                        Direction="Out" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                                        Direction="Out" />-->
    </telerikAnimation:AnimationGroup>
 
    <!-- Right AutoHideArea animations -->
 
    <telerikAnimation:AnimationGroup AnimationName="RightIn">
        <telerikAnimation:SlideAnimation SlideMode="Bottom"
                                                        TargetElementName="PopupChild"
                                            Duration="{StaticResource AutoHideInAnimationDuration}"
                                                        Orientation="Horizontal"
                                                        Direction="In" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                                        Direction="In" />-->
    </telerikAnimation:AnimationGroup>
 
    <telerikAnimation:AnimationGroup AnimationName="RightOut">
        <telerikAnimation:SlideAnimation TargetElementName="PopupChild" SlideMode="Bottom"
                                            Duration="{StaticResource AutoHideOutAnimationDuration}"
                                                        Orientation="Horizontal"
                                                        Direction="Out" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                                        Direction="Out" />-->
    </telerikAnimation:AnimationGroup>
 
    <!-- Bottom AutoHideArea animations -->
 
    <telerikAnimation:AnimationGroup AnimationName="BottomIn">
        <telerikAnimation:SlideAnimation SlideMode="Bottom"
                                            Duration="{StaticResource AutoHideInAnimationDuration}"
                Orientation="Vertical" TargetElementName="PopupChild" Direction="In" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                Direction="In" />-->
    </telerikAnimation:AnimationGroup>
    <telerikAnimation:AnimationGroup AnimationName="BottomOut">
        <telerikAnimation:SlideAnimation
            Duration="{StaticResource AutoHideOutAnimationDuration}"
                TargetElementName="PopupChild" Direction="Out"
                Orientation="Vertical" SlideMode="Bottom" />
        <!--<telerikAnimation:FadeAnimation TargetElementName="PopupChild"
                Direction="Out" />-->
    </telerikAnimation:AnimationGroup>
</telerikAnimation:AnimationSelector>

If you want to disable some of the animations, just remove them from the collection. The animations with direction and the word in/out are for the AutoHide areas. For instance BottomOut is the animation for showing the AutoHide area at the bottom.

Hope this helps!

Greetings,
Miroslav Nedyalkov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Roman
Top achievements
Rank 1
answered on 16 May 2011, 05:19 PM
Hi Miroslav,

Is it possible to get an example for this:

"You can implement this behavior (that was described by Julian) yourself using the events of theRadPane and the events of the AutoHideArea - you can handle the SelectionChange event of the AutoHide area and unselect what is selected and to handle the Click event of the RadPaneand to check is it unpinned and if it is to pin it back."

I'm using RadDock for WinForms.

Thanks in advance,
Roman.
0
Stefan
Telerik team
answered on 20 May 2011, 01:19 PM
Hello Roman, 

Since you question is related to RadControls for WinForms, I would like to kindly ask you to describe your question in the appropriate forum - RadControl for WInForms Forum. We are not quite sure that we understand your requirements, please elaborate a bit more and describe in detail the required behavior. The WinForms team will be glad to help you.

Thank you for the understanding.
Stefan
the Telerik team
0
Charles Bates
Top achievements
Rank 1
answered on 20 May 2011, 02:42 PM
Thanks for the example code.  I assume this goes in to the <RadDocking.Resources>?
What version of the Docking control is necessary?  When I added this xaml to my project, I get errors such as:
    Error 90 The property 'Duration' was not found in type 'SlideAnimation'.

Thanks for following up on this issue....
0
Miroslav Nedyalkov
Telerik team
answered on 25 May 2011, 11:03 AM
Hi Charles,

The problem is that the sample code refers a resource from the Docking theme - the in and out animations of the AutoHideArea. What you need to do to get it working is to replace {StaticResource AutoHideInAnimationDuration} and {StaticResource AutoHideOutAnimationDuration} with the durations you want.

Hope this helps.

Best wishes,
Miroslav Nedyalkov
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
0
Charles Bates
Top achievements
Rank 1
answered on 25 May 2011, 01:40 PM
The values for Duration and Orientation aren't the problem.  The properties themselves are the problem -- they can't be found:

Error 2 The property 'Duration' was not found in type 'SlideAnimation'. I:\Work\\MainPage.xaml 848 45 Client
0
Miroslav Nedyalkov
Telerik team
answered on 25 May 2011, 02:20 PM
Hi Charles,

The example uses the latest version of the RadDocking control (Q1 2011 SP1). It should work correctly with the Q3 2010 and Q1 2011 also. Which version do you use?

Regards,
Miroslav Nedyalkov
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
Julian
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Dave
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
C Bates
Top achievements
Rank 1
Susanna
Top achievements
Rank 1
Roman
Top achievements
Rank 1
Stefan
Telerik team
Charles Bates
Top achievements
Rank 1
Share this question
or