Disabling autohide for pinned and unpinned panes

14 posts, 0 answers
  1. Julian
    Julian avatar
    7 posts
    Member since:
    Jul 2008

    Posted 25 Jun 2009 Link to this post

    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

  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 01 Jul 2009 Link to this post

    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.
  3. DevCraft banner
  4. Dave
    Dave avatar
    26 posts
    Member since:
    Jun 2009

    Posted 24 Sep 2009 Link to this post

    Did this make it into any of the recent builds?
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 Sep 2009 Link to this post

    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.
  6. C Bates
    C Bates avatar
    33 posts
    Member since:
    Oct 2009

    Posted 13 Feb 2010 Link to this post

    We have a customer that would like this functionality, too.

  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 17 Feb 2010 Link to this post

    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.
  8. Susanna
    Susanna avatar
    1 posts
    Member since:
    Feb 2011

    Posted 18 Feb 2011 Link to this post

    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?
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Feb 2011 Link to this post

    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!
  10. Roman
    Roman avatar
    1 posts
    Member since:
    May 2011

    Posted 16 May 2011 Link to this post

    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.
  11. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 20 May 2011 Link to this post

    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
  12. Charles Bates
    Charles Bates avatar
    45 posts
    Member since:
    Feb 2010

    Posted 20 May 2011 Link to this post

    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....
  13. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 May 2011 Link to this post

    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
  14. Charles Bates
    Charles Bates avatar
    45 posts
    Member since:
    Feb 2010

    Posted 25 May 2011 Link to this post

    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
  15. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 May 2011 Link to this post

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