-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.Animation.AddDeleteThemeTransition |
winrt class |
Provides the animated transition behavior for when controls add or delete children of a panel. For example, if you have a collection of photos displayed in a Grid, you can associate this animation to the Grid so that when photos are added or deleted, the photos will animate in and out of view.
<AddDeleteThemeTransition .../>
The following example shows how to use the AddDeleteThemeTransition to animate rectangles as they are added and deleted from a panel. Notice how the other child elements of the panel re-flow when one of them is removed.
[!code-xamlAddDeleteThemeTransition]
[!code-csharpAddDeleteThemeTransition_code]