Intersoft ClientUI Documentation
ContentTransition Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : ContentTransition Class






Represents a control that applies animation transition to its Content.

Object Model

ContentTransition Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a control that applies animation transition to its Content.")>
<TemplatePartAttribute(Name="CurrentContentElement", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="PreviousContentElement", Type=System.Windows.Controls.ContentPresenter)>
<TemplateVisualStateAttribute(Name="Normal", GroupName="PresentationStates")>
Public Class ContentTransition 
   Inherits Intersoft.Client.Framework.ISContentControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As ContentTransition
C# 
[DescriptionAttribute("Represents a control that applies animation transition to its Content.")]
[TemplatePartAttribute(Name="CurrentContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="PreviousContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplateVisualStateAttribute(Name="Normal", GroupName="PresentationStates")]
public class ContentTransition : Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  
Delphi 
public class ContentTransition = class(Intersoft.Client.Framework.ISContentControl, IControl, IFramework, ILicensing)
JScript 
DescriptionAttribute("Represents a control that applies animation transition to its Content.")
TemplatePartAttribute(Name="CurrentContentElement", Type=System.Windows.Controls.ContentPresenter)
TemplatePartAttribute(Name="PreviousContentElement", Type=System.Windows.Controls.ContentPresenter)
TemplateVisualStateAttribute(Name="Normal", GroupName="PresentationStates")
public class ContentTransition extends Intersoft.Client.Framework.ISContentControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a control that applies animation transition to its Content.")]
[TemplatePartAttribute(Name="CurrentContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="PreviousContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplateVisualStateAttribute(Name="Normal", GroupName="PresentationStates")]
public __gc class ContentTransition : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  
C++/CLI 
[DescriptionAttribute("Represents a control that applies animation transition to its Content.")]
[TemplatePartAttribute(Name="CurrentContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="PreviousContentElement", Type=System.Windows.Controls.ContentPresenter)]
[TemplateVisualStateAttribute(Name="Normal", GroupName="PresentationStates")]
public ref class ContentTransition : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  

Remarks

ContentTransition is inherited from ISContentControl, which means that it can contain a single object of any type (such as a string, an image, or a panel). For more information about this content model, see Content Model Overview.

Using ContentTransition

You use ContentTransition to provide visual transition when the Content of the control is changed. The transition is enabled by default and the default transition is set to Fading.

You can choose one of the TransitionEffect to apply to a ContentTransition control such as listed in the following:

  • Fading
  • SlideUp
  • SlideDown
  • SlideLeft
  • SlideRight
  • ZoomIn
  • ZoomOut
  • FlipLeft
  • FlipRight
  • FlipUp
  • FlipDown
  • Cube
  • Direct
  • Custom 

The following example shows how to setup a simple ContentTransition control with an Image in its content.

XAML Copy Code
<Intersoft:ContentTransition>

    <Image Source="/ClientUIApplication_Docs;component/Assets/Images/dvdunesk.jpg" VerticalAlignment="Center" />

</Intersoft:ContentTransition>

You can explicitly disable the transition by setting the EnableTransition to false.

ContentTransition also includes several advanced features, such as performing transition on load, customizing transition effects and duration, handling transition events, detecting navigation direction and more. See ContentTransition Overview to learn more about these features.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.UI.Controls.ContentTransition

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.