Ticket T114203
Visible to All Users

Using the TransitionManager to animate 2 controls in one container

created 11 years ago

Hi,

In my application I need to load pdf documents and at times load rtf docs in the same container. Currently how I handle this would be to hide the pdf control when viewing a rtf doc and to hide the rich edit control when viewing a pdf. All my forms use the xtraLayoutControl. What I am trying to achieve is to use the transition manager to animate the transition between pdfviewer and the rich edit control. Attached is a sample with both the controls on the form. Could you please illustrate how these controls can be toggled with an animation on a button click.

Answers approved by DevExpress Support

created 11 years ago

Hi Isaak,

As far as I understand, you wish to animate the process of resizing one control if the visibility of another is changed when both controls are located on the LayoutControl. If so, the TransitionManager component does not support this functionality. However, you can animate the process of hiding one of controls when they are placed one above another. I've created a simple project to illustrate this.

For more information on the TransitionMananger component, check the following documentation article: TransitionManager

Let me know if you have additional questions.

    Show previous comments (6)
    Alisher (DevExpress Support) 11 years ago

      Hi Isaac,

      Thank you for the clarification. As far as I understand, you wish to load a document regardless of the selected tab, but run the animation only when a tab with documents is selected. If so, you can simply check which tab is selected by using the TabbedControlGroup's SelectedTabPage property and, based on this, avoid or allow creating the BatchTransition class.

      I hope this helps.

      DR DR
      Dennis Rodriguez 7 years ago

        I would like to have a c# version. Possible?

        Alisher (DevExpress Support) 7 years ago

          I have attached a CS version of the project. Please check the attachment.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.