Intersoft.Client.UI.Controls Namespace : ContentTransition Class |
<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 Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
Dim instance As ContentTransition
[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, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
[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, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
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.
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:
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.
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2