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

add effect to the ribbon backstage

1 Answer 71 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
al
Top achievements
Rank 1
al asked on 10 Sep 2016, 11:02 AM

hi

i need to add a move right and move left for backstage open and close  in ribbon in wpf.

how can i add it?

 

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 Sep 2016, 12:11 PM
Hi,

We are not sure what exactly you are trying to achieve in your application. If you want to animate the RadRibbonBackstage you can use an attached property to trigger a custom animation for the RadRibbonBackstage control. You can also define attached property to take and use the width of the ribbon in the animations. Basically, you can do the following:
  • Create a class for the attached properties
  • Create an attached property (for example called BackstageAnimationProperty). Then in its PropertyChangedCallback get the RadRibbonBackstage element and add a handler for its Loaded event.
  • In the Loaded event handler, create a Storyboard with a DoubleAnimation which animates the Width of the backstage
Then you can set this attached property on the RibbonBackstage. For example:
<telerik:RadRibbonBackstage local:RibbonUtilities.BackstageAnimation="SlideLeftToRigth" />

For your convenience, I prepared a sample project which demonstrates such an implementation. Note that when you resize the RibbonView in the attached project, the backstage will not change its width automatically. This is why you will need to change the width of the backstage in its SizeChanged handler.

Regards,
Dinko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
RibbonView and RibbonWindow
Asked by
al
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or