Represents an animation that simultaneously animates the exit of one element and the entrance of another element.
public ref class ConnectedAnimation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)] /// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] /// [Windows.Foundation.Metadata.WebHostHidden] class ConnectedAnimation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.WebHostHidden] public sealed class ConnectedAnimation
Public NotInheritable Class ConnectedAnimation
Windows.Foundation.Metadata.ContractVersionAttribute Windows.Foundation.Metadata.MarshalingBehaviorAttribute Windows.Foundation.Metadata.WebHostHiddenAttribute
For more info, design guidance, and code examples, see Connected animation.
If you have the XAML Controls Gallery app installed, click here to open the app and see Connected Animation in action.
When you call TryStart, the element you pass into the method should have its size defined in layout. This means that either the size of the element should be set in markup, or the content of the element should be fully populated, so that its size can be calculated by the XAML framework. If the layout is part of a ListView or GridView item with bound properties, you might have to manually update the content to prepare for the animation because bindings can be updated asynchronously.
There is a known limitation where ConnectedAnimation does not work well with theme transitions that have a translation component, including NavigationThemeTransition and EntranceThemeTransition. We recommend that you remove these transitions, or suppress the navigation using SuppressNavigationTransitionInfo, when you create an experience with ConnectedAnimation.
See the [Connected animation sample](https://github.com/microsoft/WindowsCompositionSamples/tree/master/SampleGallery/Samples/SDK 14393/ConnectedAnimationSample) for a complete example of ConnectedAnimation.
Gets or sets the configuration that describes the type of connected animation to play.
Gets or sets a value that indicates whether the scale component of the connected animation should be used.
Stops the connected animation.
Sets a custom CompositionAnimation to change the motion of a particular part of the connected animation.
Attempts to start the animation.
Attempts to start the animation on the destination element and specified secondary elements.
Occurs when the animation is finished.