ElementCompositionPreview.SetImplicitShowAnimation Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Associates the specified show animation with a UIElement.
public:
static void SetImplicitShowAnimation(UIElement ^ element, ICompositionAnimationBase ^ animation);
static void SetImplicitShowAnimation(UIElement const& element, ICompositionAnimationBase const& animation);
public static void SetImplicitShowAnimation(UIElement element, ICompositionAnimationBase animation);
function setImplicitShowAnimation(element, animation)
Public Shared Sub SetImplicitShowAnimation (element As UIElement, animation As ICompositionAnimationBase)
- element
- UIElement
The UIElement to associate the animation with.
- animation
- ICompositionAnimationBase
The animation to play when the UIElement is shown. A Null value prevents show animations from playing for this element until the method is called again with an animation value.
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
When an element is added to the scene or its Visibility property becomes Visibility.Visible, the element and all of its descendents in the UI tree will play their show animations.
Produkt | Versioner |
---|---|
WinRT | Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |